Struct ResourceRequest
#[non_exhaustive]pub struct ResourceRequest {Show 16 fields
pub url: String,
pub kind: ResourceKind,
pub raw_kind: u32,
pub loading_method: ResourceLoadingMethod,
pub raw_loading_method: u32,
pub priority: ResourcePriority,
pub raw_priority: u32,
pub usage: ResourceUsage,
pub raw_usage: u32,
pub storage_policy: ResourceStoragePolicy,
pub raw_storage_policy: u32,
pub range: Option<ByteRange>,
pub prior_modified_unix_ms: Option<i64>,
pub prior_expires_unix_ms: Option<i64>,
pub prior_etag: Option<String>,
pub prior_data: Vec<u8>,
}Expand description
Copied request passed to a runtime-scoped resource provider callback.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: String§kind: ResourceKind§raw_kind: u32§loading_method: ResourceLoadingMethod§raw_loading_method: u32§priority: ResourcePriority§raw_priority: u32§usage: ResourceUsage§raw_usage: u32§storage_policy: ResourceStoragePolicy§raw_storage_policy: u32§range: Option<ByteRange>§prior_modified_unix_ms: Option<i64>§prior_expires_unix_ms: Option<i64>§prior_etag: Option<String>§prior_data: Vec<u8>Trait Implementations§
§impl Clone for ResourceRequest
impl Clone for ResourceRequest
§fn clone(&self) -> ResourceRequest
fn clone(&self) -> ResourceRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ResourceRequest
impl Debug for ResourceRequest
§impl Hash for ResourceRequest
impl Hash for ResourceRequest
§impl PartialEq for ResourceRequest
impl PartialEq for ResourceRequest
impl Eq for ResourceRequest
impl StructuralPartialEq for ResourceRequest
Auto Trait Implementations§
impl Freeze for ResourceRequest
impl RefUnwindSafe for ResourceRequest
impl Send for ResourceRequest
impl Sync for ResourceRequest
impl Unpin for ResourceRequest
impl UnsafeUnpin for ResourceRequest
impl UnwindSafe for ResourceRequest
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