pub struct SnapshotStore { /* private fields */ }Implementations§
Source§impl SnapshotStore
impl SnapshotStore
pub fn new() -> Self
pub fn snapshot_file(&mut self, path: &Path) -> Option<FileSnapshot>
pub fn snapshot_bytes( &mut self, path: impl Into<PathBuf>, bytes: Vec<u8>, ) -> FileSnapshot
pub fn get(&self, path: &Path) -> Option<&FileSnapshot>
Trait Implementations§
Source§impl Clone for SnapshotStore
impl Clone for SnapshotStore
Source§fn clone(&self) -> SnapshotStore
fn clone(&self) -> SnapshotStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotStore
impl Debug for SnapshotStore
Source§impl Default for SnapshotStore
impl Default for SnapshotStore
Source§fn default() -> SnapshotStore
fn default() -> SnapshotStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SnapshotStore
impl RefUnwindSafe for SnapshotStore
impl Send for SnapshotStore
impl Sync for SnapshotStore
impl Unpin for SnapshotStore
impl UnsafeUnpin for SnapshotStore
impl UnwindSafe for SnapshotStore
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