Skip to main content

DynBlobStore

Struct DynBlobStore 

Source
pub struct DynBlobStore<'dynosaur_struct> { /* private fields */ }

Implementations§

Source§

impl<'dynosaur_struct> DynBlobStore<'dynosaur_struct>

Source

pub fn new_box( value: impl BlobStore + 'dynosaur_struct, ) -> Box<DynBlobStore<'dynosaur_struct>>

Source

pub fn new_arc( value: impl BlobStore + 'dynosaur_struct, ) -> Arc<DynBlobStore<'dynosaur_struct>>

Source

pub fn new_rc( value: impl BlobStore + 'dynosaur_struct, ) -> Rc<DynBlobStore<'dynosaur_struct>>

Source

pub const fn from_box( value: Box<impl BlobStore + 'dynosaur_struct>, ) -> Box<DynBlobStore<'dynosaur_struct>>

Source

pub const fn from_ref( value: &(impl BlobStore + 'dynosaur_struct), ) -> &DynBlobStore<'dynosaur_struct>

Source

pub const fn from_mut( value: &mut (impl BlobStore + 'dynosaur_struct), ) -> &mut DynBlobStore<'dynosaur_struct>

Trait Implementations§

Source§

impl<'dynosaur_struct> BlobStore for DynBlobStore<'dynosaur_struct>

Source§

fn put( &self, key: &str, data: Vec<u8>, ) -> impl Future<Output = Result<()>> + Send

Store data at key, overwriting any existing blob.
Source§

fn get(&self, key: &str) -> impl Future<Output = Result<Vec<u8>>> + Send

Retrieve the blob at key.
Source§

fn delete(&self, key: &str) -> impl Future<Output = Result<()>> + Send

Delete the blob at key. No-op if the key does not exist.
Source§

fn exists(&self, key: &str) -> impl Future<Output = Result<bool>> + Send

Check whether a blob exists at key.
Source§

fn list( &self, prefix: &str, ) -> impl Future<Output = Result<Vec<BlobMeta>>> + Send

List blobs whose keys start with prefix.

Auto Trait Implementations§

§

impl<'dynosaur_struct> !Freeze for DynBlobStore<'dynosaur_struct>

§

impl<'dynosaur_struct> !RefUnwindSafe for DynBlobStore<'dynosaur_struct>

§

impl<'dynosaur_struct> Send for DynBlobStore<'dynosaur_struct>

§

impl<'dynosaur_struct> !Sized for DynBlobStore<'dynosaur_struct>

§

impl<'dynosaur_struct> Sync for DynBlobStore<'dynosaur_struct>

§

impl<'dynosaur_struct> !Unpin for DynBlobStore<'dynosaur_struct>

§

impl<'dynosaur_struct> !UnsafeUnpin for DynBlobStore<'dynosaur_struct>

§

impl<'dynosaur_struct> !UnwindSafe for DynBlobStore<'dynosaur_struct>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more