Skip to main content

BridgeChannelSet

Trait BridgeChannelSet 

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

Source

const STATIC_CHANNELS: &'static [&'static dyn BridgeChannelInfo<Self::Id>]

Compile-time metadata describing all channels in this set.

Required Associated Types§

Source

type Id: Copy + Eq + 'static

Enumeration identifying each channel in this set.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§