Trait wasmcloud_runtime::capability::keyvalue::store::Host

source ·
pub trait Host: Send + HostBucket {
    // Required method
    fn open<'life0, 'async_trait>(
        &'life0 mut self,
        identifier: String,
    ) -> Pin<Box<dyn Future<Output = Result<Result<Resource<Bucket>, Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn open<'life0, 'async_trait>( &'life0 mut self, identifier: String, ) -> Pin<Box<dyn Future<Output = Result<Result<Resource<Bucket>, Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the bucket with the specified identifier.

identifier must refer to a bucket provided by the host.

error::no-such-store will be raised if the identifier is not recognized.

Implementations on Foreign Types§

source§

impl<_T: Host + ?Sized + Send> Host for &mut _T

source§

fn open<'life0, 'async_trait>( &'life0 mut self, identifier: String, ) -> Pin<Box<dyn Future<Output = Result<Result<Resource<Bucket>, Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the bucket with the specified identifier.

identifier must refer to a bucket provided by the host.

error::no-such-store will be raised if the identifier is not recognized.

Implementors§