Trait wasmcloud_runtime::capability::bus1_0_0::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<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
sourcefn set_link_name<'life0, 'async_trait>(
&'life0 mut self,
name: String,
interfaces: Vec<Resource<CallTargetInterface>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_link_name<'life0, 'async_trait>(
&'life0 mut self,
name: String,
interfaces: Vec<Resource<CallTargetInterface>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.
Implementations on Foreign Types§
source§impl<_T: Host + ?Sized + Send> Host for &mut _T
impl<_T: Host + ?Sized + Send> Host for &mut _T
source§fn set_link_name<'life0, 'async_trait>(
&'life0 mut self,
name: String,
interfaces: Vec<Resource<CallTargetInterface>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_link_name<'life0, 'async_trait>(
&'life0 mut self,
name: String,
interfaces: Vec<Resource<CallTargetInterface>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.