pub trait Protocol:
ModulationParams
+ FrameLayout
+ 'static {
type Fec: FecCodec;
type Msg: MessageCodec;
const ID: ProtocolId;
}Expand description
The full protocol description: ties ModulationParams, FrameLayout, a
FEC codec and a message codec together under one trait for ergonomic
<P: Protocol> bounds.
Required Associated Constants§
Sourceconst ID: ProtocolId
const ID: ProtocolId
Runtime tag used at FFI / WASM boundaries.
Required Associated Types§
Sourcetype Msg: MessageCodec
type Msg: MessageCodec
Message codec consuming the FEC-decoded information bits.
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.