pub trait Host: HostCallTargetInterface + Send {
// Required method
fn set_link_name(
&mut self,
name: String,
interfaces: Vec<Resource<CallTargetInterface>>,
) -> impl Future<Output = Result<Result<(), String>>> + Send;
}Required Methods§
Sourcefn set_link_name(
&mut self,
name: String,
interfaces: Vec<Resource<CallTargetInterface>>,
) -> impl Future<Output = Result<Result<(), String>>> + Send
fn set_link_name( &mut self, name: String, interfaces: Vec<Resource<CallTargetInterface>>, ) -> impl Future<Output = Result<Result<(), String>>> + Send
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.
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
impl<_T: Host + ?Sized + Send> Host for &mut _T
Source§fn set_link_name(
&mut self,
name: String,
interfaces: Vec<Resource<CallTargetInterface>>,
) -> impl Future<Output = Result<Result<(), String>>> + Send
fn set_link_name( &mut self, name: String, interfaces: Vec<Resource<CallTargetInterface>>, ) -> impl Future<Output = Result<Result<(), String>>> + Send
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.