Trait wasmcloud_runtime::capability::bus::lattice::Host

source ·
pub trait Host: Send + HostCallTargetInterface {
    // Required method
    fn set_link_name<'life0, 'async_trait>(
        &'life0 mut self,
        name: String,
        interfaces: Vec<Resource<CallTargetInterface>>,
    ) -> Pin<Box<dyn Future<Output = Result<Result<(), String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Set a link name to use for all interfaces specified. This is advanced functionality only available within wasmcloud and, as such, is exposed here as part of the wasmcloud:bus package. This is used when you are linking multiple of the same interfaces (i.e. a keyvalue implementation for caching and another one for secrets) to a component.

Will return an error if a link does not exist at call time with the specified name and interfaces.

Implementations on Foreign Types§

source§

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

Set a link name to use for all interfaces specified. This is advanced functionality only available within wasmcloud and, as such, is exposed here as part of the wasmcloud:bus package. This is used when you are linking multiple of the same interfaces (i.e. a keyvalue implementation for caching and another one for secrets) to a component.

Will return an error if a link does not exist at call time with the specified name and interfaces.

Implementors§