pub struct FileStateCache { /* private fields */ }Expand description
Cache of file states extracted from message history.
Implementations§
Source§impl FileStateCache
impl FileStateCache
Sourcepub fn set(&mut self, path: impl Into<String>, entry: FileStateEntry)
pub fn set(&mut self, path: impl Into<String>, entry: FileStateEntry)
Insert a file state entry into the cache.
Sourcepub fn get(&self, path: &str) -> Option<&FileStateEntry>
pub fn get(&self, path: &str) -> Option<&FileStateEntry>
Get a file state entry from the cache.
Trait Implementations§
Source§impl Clone for FileStateCache
impl Clone for FileStateCache
Source§fn clone(&self) -> FileStateCache
fn clone(&self) -> FileStateCache
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 FileStateCache
impl RefUnwindSafe for FileStateCache
impl Send for FileStateCache
impl Sync for FileStateCache
impl Unpin for FileStateCache
impl UnsafeUnpin for FileStateCache
impl UnwindSafe for FileStateCache
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