pub trait BridgeChannelSet {
type Id: Copy + Eq + 'static;
const STATIC_CHANNELS: &'static [&'static dyn BridgeChannelInfo<Self::Id>];
}Expand description
Describes a set of channels for one direction (Tx or Rx) of the bridge.
This trait is implemented at compile time by Copper from the configuration.
Implementations typically expose one BridgeChannel<Id, Payload> constant per logical channel and
list them through STATIC_CHANNELS so the runtime can enumerate the available endpoints.
Required Associated Constants§
Sourceconst STATIC_CHANNELS: &'static [&'static dyn BridgeChannelInfo<Self::Id>]
const STATIC_CHANNELS: &'static [&'static dyn BridgeChannelInfo<Self::Id>]
Compile-time metadata describing all channels in this set.
Required Associated Types§
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.