pub struct DynBlobStore<'dynosaur_struct> { /* private fields */ }Implementations§
Source§impl<'dynosaur_struct> DynBlobStore<'dynosaur_struct>
impl<'dynosaur_struct> DynBlobStore<'dynosaur_struct>
pub fn new_box( value: impl BlobStore + 'dynosaur_struct, ) -> Box<DynBlobStore<'dynosaur_struct>>
pub fn new_arc( value: impl BlobStore + 'dynosaur_struct, ) -> Arc<DynBlobStore<'dynosaur_struct>>
pub fn new_rc( value: impl BlobStore + 'dynosaur_struct, ) -> Rc<DynBlobStore<'dynosaur_struct>>
pub const fn from_box( value: Box<impl BlobStore + 'dynosaur_struct>, ) -> Box<DynBlobStore<'dynosaur_struct>>
pub const fn from_ref( value: &(impl BlobStore + 'dynosaur_struct), ) -> &DynBlobStore<'dynosaur_struct>
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>
impl<'dynosaur_struct> BlobStore for DynBlobStore<'dynosaur_struct>
Source§fn put(
&self,
key: &str,
data: Vec<u8>,
) -> impl Future<Output = Result<()>> + Send
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
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
fn delete(&self, key: &str) -> impl Future<Output = Result<()>> + Send
Delete the blob at
key. No-op if the key does not exist.