pub trait HostBuilder {
// Required method
fn open_channel(&mut self, target: ChannelTarget) -> Result<ChannelId>;
}Expand description
Implemented by the host. Handed to plugins during construction only.
Required Methods§
Sourcefn open_channel(&mut self, target: ChannelTarget) -> Result<ChannelId>
fn open_channel(&mut self, target: ChannelTarget) -> Result<ChannelId>
Reserve a side channel, returning a handle to write to later.
Implementations should return the same ChannelId for equal targets.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".