pub struct FileBlobStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BlobStore for FileBlobStore
Available on non-WebAssembly only.
impl BlobStore for FileBlobStore
Available on non-WebAssembly only.
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 FileBlobStore
impl Clone for FileBlobStore
Source§fn clone(&self) -> FileBlobStore
fn clone(&self) -> FileBlobStore
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 FileBlobStore
impl RefUnwindSafe for FileBlobStore
impl Send for FileBlobStore
impl Sync for FileBlobStore
impl Unpin for FileBlobStore
impl UnwindSafe for FileBlobStore
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