pub struct CachedFile {
pub content: Arc<String>,
pub modification_time: u64,
pub last_accessed: SystemTime,
}Expand description
Simple cache entry for file content (as per spec)
Fields§
§content: Arc<String>§modification_time: u64§last_accessed: SystemTimeImplementations§
Trait Implementations§
Source§impl Clone for CachedFile
impl Clone for CachedFile
Source§fn clone(&self) -> CachedFile
fn clone(&self) -> CachedFile
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 CachedFile
impl RefUnwindSafe for CachedFile
impl Send for CachedFile
impl Sync for CachedFile
impl Unpin for CachedFile
impl UnsafeUnpin for CachedFile
impl UnwindSafe for CachedFile
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