pub struct LocalStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BlobStore for LocalStore
impl BlobStore for LocalStore
fn put<'a>( &'a self, key: &'a str, data: Bytes, _opts: PutOpts, ) -> BoxFuture<'a, Result<(), StorageError>>
fn get<'a>( &'a self, key: &'a str, ) -> BoxFuture<'a, Result<Option<Bytes>, StorageError>>
fn delete<'a>(&'a self, key: &'a str) -> BoxFuture<'a, Result<(), StorageError>>
fn exists<'a>( &'a self, key: &'a str, ) -> BoxFuture<'a, Result<bool, StorageError>>
Source§fn list<'a>(
&'a self,
prefix: &'a str,
) -> BoxFuture<'a, Result<Vec<String>, StorageError>>
fn list<'a>( &'a self, prefix: &'a str, ) -> BoxFuture<'a, Result<Vec<String>, StorageError>>
List object keys under
prefix (empty = store root). Returns file keys only.Source§fn temporary_url<'a>(
&'a self,
_key: &'a str,
_expires: Duration,
) -> BoxFuture<'a, Result<String, StorageError>>
fn temporary_url<'a>( &'a self, _key: &'a str, _expires: Duration, ) -> BoxFuture<'a, Result<String, StorageError>>
Laravel-style temporary download URL (presigned GET). Default: unsupported.
Source§fn temporary_upload_url<'a>(
&'a self,
_key: &'a str,
_expires: Duration,
) -> BoxFuture<'a, Result<String, StorageError>>
fn temporary_upload_url<'a>( &'a self, _key: &'a str, _expires: Duration, ) -> BoxFuture<'a, Result<String, StorageError>>
Laravel-style temporary upload URL (presigned PUT). Default: unsupported.
Source§impl Clone for LocalStore
impl Clone for LocalStore
Source§fn clone(&self) -> LocalStore
fn clone(&self) -> LocalStore
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 LocalStore
impl RefUnwindSafe for LocalStore
impl Send for LocalStore
impl Sync for LocalStore
impl Unpin for LocalStore
impl UnsafeUnpin for LocalStore
impl UnwindSafe for LocalStore
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