Host

Trait Host 

Source
pub trait Host: HostSecret + Send {
    // Required method
    fn get(
        &mut self,
        key: String,
    ) -> impl Future<Output = Result<Result<Resource<Secret>, SecretsError>>> + Send;
}

Required Methods§

Source

fn get( &mut self, key: String, ) -> impl Future<Output = Result<Result<Resource<Secret>, SecretsError>>> + Send

Gets a single opaque secrets value set at the given key if it exists

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Source§

fn get( &mut self, key: String, ) -> impl Future<Output = Result<Result<Resource<Secret>, SecretsError>>> + Send

Gets a single opaque secrets value set at the given key if it exists

Implementors§

Source§

impl<H: Handler> Host for Ctx<H>