Host

Trait Host 

Source
pub trait Host: Send {
    // Required method
    fn reveal(
        &mut self,
        s: Resource<Secret>,
    ) -> impl Future<Output = Result<SecretValue>> + Send;
}

Required Methods§

Source

fn reveal( &mut self, s: Resource<Secret>, ) -> impl Future<Output = Result<SecretValue>> + Send

Reveals the value of a secret to the caller. This lets you easily audit your code to discover where secrets are being used.

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 reveal( &mut self, s: Resource<Secret>, ) -> impl Future<Output = Result<SecretValue>> + Send

Reveals the value of a secret to the caller. This lets you easily audit your code to discover where secrets are being used.

Implementors§

Source§

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