pub struct LocalFileBlobStore { /* private fields */ }Implementations§
Source§impl LocalFileBlobStore
impl LocalFileBlobStore
pub fn new(root: impl Into<PathBuf>) -> Result<Self, BlobStoreError>
pub fn uri_for_path(path: &Path) -> String
pub fn path_from_uri(uri: &str) -> Result<PathBuf, BlobStoreError>
Trait Implementations§
Source§impl BlobStore for LocalFileBlobStore
impl BlobStore for LocalFileBlobStore
fn put<'life0, 'async_trait>(
&'life0 self,
attachment_id: String,
payload: MultimodalPayload,
) -> Pin<Box<dyn Future<Output = Result<AttachmentRef, BlobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
descriptor: &'life1 BlobDescriptor,
) -> Pin<Box<dyn Future<Output = Result<MultimodalPayload, BlobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Clone for LocalFileBlobStore
impl Clone for LocalFileBlobStore
Source§fn clone(&self) -> LocalFileBlobStore
fn clone(&self) -> LocalFileBlobStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LocalFileBlobStore
impl RefUnwindSafe for LocalFileBlobStore
impl Send for LocalFileBlobStore
impl Sync for LocalFileBlobStore
impl Unpin for LocalFileBlobStore
impl UnsafeUnpin for LocalFileBlobStore
impl UnwindSafe for LocalFileBlobStore
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