pub struct SnapshotStore { /* private fields */ }Expand description
In-memory snapshot store
Implementations§
Source§impl SnapshotStore
impl SnapshotStore
Sourcepub fn store(&self, snapshot: RawSnapshot) -> String
pub fn store(&self, snapshot: RawSnapshot) -> String
Store a snapshot
Sourcepub fn get_by_hash(&self, hash: &str) -> Option<RawSnapshot>
pub fn get_by_hash(&self, hash: &str) -> Option<RawSnapshot>
Get by hash
Sourcepub fn get_by_url(&self, url: &Url) -> Option<RawSnapshot>
pub fn get_by_url(&self, url: &Url) -> Option<RawSnapshot>
Get by URL
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SnapshotStore
impl RefUnwindSafe for SnapshotStore
impl Send for SnapshotStore
impl Sync for SnapshotStore
impl Unpin 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