pub struct MemStore { /* private fields */ }
Expand description
A simple in memory store
Implementations
Trait Implementations
sourceimpl BlobStore for MemStore
impl BlobStore for MemStore
sourcefn read(&self, id: &[u8]) -> Result<Blob<'static>, Self::Error>
fn read(&self, id: &[u8]) -> Result<Blob<'static>, Self::Error>
Read a blob with the given id. Since ids can be of arbitrary size, passed as a slice
sourcefn write(&self, slice: &[u8]) -> Result<Vec<u8>, Self::Error>
fn write(&self, slice: &[u8]) -> Result<Vec<u8>, Self::Error>
Write a blob, returning an id into a target vec
tgt
. Read moresourcefn needs_deep_detach(&self) -> bool
fn needs_deep_detach(&self) -> bool
True if the store needs deep detach. This is true for basically all stores except the special NoStore store
Auto Trait Implementations
impl !RefUnwindSafe for MemStore
impl Send for MemStore
impl Sync for MemStore
impl Unpin for MemStore
impl !UnwindSafe for MemStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more