pub struct LoadedResource {
pub uri: String,
pub data: Vec<u8>,
pub content_type: ContentType,
pub last_modified: Option<u64>,
}Expand description
A loaded resource.
Fields§
§uri: StringResource URI
data: Vec<u8>Raw data bytes
content_type: ContentTypeContent type
last_modified: Option<u64>Last modified timestamp
Trait Implementations§
Source§impl Clone for LoadedResource
impl Clone for LoadedResource
Source§fn clone(&self) -> LoadedResource
fn clone(&self) -> LoadedResource
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 moreAuto Trait Implementations§
impl Freeze for LoadedResource
impl RefUnwindSafe for LoadedResource
impl Send for LoadedResource
impl Sync for LoadedResource
impl Unpin for LoadedResource
impl UnwindSafe for LoadedResource
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