Skip to main content

ConfiguredAs

Trait ConfiguredAs 

Source
pub trait ConfiguredAs<Tr, S>: EmbeddedNetworkChannel { }
Expand description

A network channel end whose configuration is exactly the acknowledged transport Tr and serialization S. Each part is checked separately, so a mismatch names the part the host acknowledges wrongly. It is what EmbeddedNetworkOutputChannel::new and EmbeddedNetworkInputChannel::new require.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<C, Tr, S> ConfiguredAs<Tr, S> for C
where C: EmbeddedNetworkChannel, Tr: AcknowledgesTransport<C::Transport, C>, S: AcknowledgesSerialization<C::Serialization, C>,