Skip to main content

HostBuilder

Trait HostBuilder 

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

Source

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".

Implementors§