pub struct BlobManager { /* private fields */ }Implementations§
Source§impl BlobManager
impl BlobManager
pub const fn new(data_store: DataStore, blob_store: FileSystem) -> Self
pub fn has(&self, id: BlobId) -> EyreResult<bool>
pub fn get(&self, id: BlobId) -> EyreResult<Option<Blob>>
pub async fn delete(&self, id: BlobId) -> EyreResult<bool>
pub async fn put<T>(&self, stream: T) -> EyreResult<(BlobId, Hash, u64)>where
T: AsyncRead,
pub async fn put_sized<T>(
&self,
size: Option<Size>,
stream: T,
) -> EyreResult<(BlobId, Hash, u64)>where
T: AsyncRead,
Trait Implementations§
Source§impl Clone for BlobManager
impl Clone for BlobManager
Source§fn clone(&self) -> BlobManager
fn clone(&self) -> BlobManager
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 BlobManager
impl !RefUnwindSafe for BlobManager
impl Send for BlobManager
impl Sync for BlobManager
impl Unpin for BlobManager
impl !UnwindSafe for BlobManager
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