Struct humphrey_server::server::cache::CachedItem
source · pub struct CachedItem {
pub route: String,
pub host: usize,
pub mime_type: MimeType,
pub cache_time: u64,
pub data: Vec<u8>,
}
Expand description
Represents a cached item.
Fields§
§route: String
The route that this item was served at.
host: usize
The host that this item was served at.
mime_type: MimeType
The MIME type of the item.
cache_time: u64
The time at which the item was cached.
data: Vec<u8>
The item’s data.
Auto Trait Implementations§
impl RefUnwindSafe for CachedItem
impl Send for CachedItem
impl Sync for CachedItem
impl Unpin for CachedItem
impl UnwindSafe for CachedItem
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