wasmcloud_runtime::capability::secrets::reveal

Trait 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§