Trait wasmcloud_runtime::capability::secrets::reveal::Host

source ·
pub trait Host: Send {
    // Required method
    fn reveal<'life0, 'async_trait>(
        &'life0 mut self,
        s: Resource<Secret>,
    ) -> Pin<Box<dyn Future<Output = Result<SecretValue>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn reveal<'life0, 'async_trait>( &'life0 mut self, s: Resource<Secret>, ) -> Pin<Box<dyn Future<Output = Result<SecretValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Implementations on Foreign Types§

source§

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

source§

fn reveal<'life0, 'async_trait>( &'life0 mut self, s: Resource<Secret>, ) -> Pin<Box<dyn Future<Output = Result<SecretValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Implementors§