pub struct MemoryBlobStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BlobStore for MemoryBlobStore
impl BlobStore for MemoryBlobStore
fn name(&self) -> &str
fn put_blob(&self, data: &[u8], media_type: Option<&str>) -> Result<BlobRef>
fn get_blob(&self, blob_id: &str) -> Result<Option<StoredBlob>>
fn delete_unreferenced(&self, live_blob_ids: &BTreeSet<String>) -> Result<usize>
fn has_blob(&self, blob_id: &str) -> Result<bool>
Source§impl Clone for MemoryBlobStore
impl Clone for MemoryBlobStore
Source§fn clone(&self) -> MemoryBlobStore
fn clone(&self) -> MemoryBlobStore
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 moreSource§impl Debug for MemoryBlobStore
impl Debug for MemoryBlobStore
Source§impl Default for MemoryBlobStore
impl Default for MemoryBlobStore
Source§fn default() -> MemoryBlobStore
fn default() -> MemoryBlobStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryBlobStore
impl RefUnwindSafe for MemoryBlobStore
impl Send for MemoryBlobStore
impl Sync for MemoryBlobStore
impl Unpin for MemoryBlobStore
impl UnwindSafe for MemoryBlobStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more