pub struct ResourceRequestInfo {
pub requested_url: String,
pub resolved_url: String,
pub kind: ResourceKind,
pub loading_method: ResourceLoadingMethod,
pub priority: ResourcePriority,
pub usage: ResourceUsage,
pub storage_policy: ResourceStoragePolicy,
pub range: Option<ResourceRange>,
pub prior_modified_unix_ms: Option<i64>,
pub prior_expires_unix_ms: Option<i64>,
pub prior_etag: String,
pub prior_data: Vec<u8>,
}Expand description
A request that a resource provider serves.
When the cache holds an earlier copy of the resource, the prior_ fields
describe it.
See mln_resource_request_info in the
C API reference.
Fields§
§requested_url: StringThe URL as the style names it.
resolved_url: StringThe URL to load, after the library expands any shorthand in
requested_url and before any resource transform. Routes match this
URL.
kind: ResourceKind§loading_method: ResourceLoadingMethod§priority: ResourcePriority§usage: ResourceUsage§storage_policy: ResourceStoragePolicy§range: Option<ResourceRange>The only bytes of the resource that the request wants.
prior_modified_unix_ms: Option<i64>§prior_expires_unix_ms: Option<i64>§prior_etag: StringEmpty when the earlier copy has no ETag.
prior_data: Vec<u8>Trait Implementations§
Source§impl Clone for ResourceRequestInfo
impl Clone for ResourceRequestInfo
Source§fn clone(&self) -> ResourceRequestInfo
fn clone(&self) -> ResourceRequestInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceRequestInfo
impl Debug for ResourceRequestInfo
Source§impl Default for ResourceRequestInfo
impl Default for ResourceRequestInfo
Source§fn default() -> ResourceRequestInfo
fn default() -> ResourceRequestInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResourceRequestInfo
impl PartialEq for ResourceRequestInfo
impl StructuralPartialEq for ResourceRequestInfo
Auto Trait Implementations§
impl Freeze for ResourceRequestInfo
impl RefUnwindSafe for ResourceRequestInfo
impl Send for ResourceRequestInfo
impl Sync for ResourceRequestInfo
impl Unpin for ResourceRequestInfo
impl UnsafeUnpin for ResourceRequestInfo
impl UnwindSafe for ResourceRequestInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more