pub trait ModuleCommon {
type ClientConfig: ClientConfig;
type Input: Input;
type Output: Output;
type OutputOutcome: OutputOutcome;
type ConsensusItem: ModuleConsensusItem;
type InputError: InputError;
type OutputError: OutputError;
// Provided methods
fn decoder_builder() -> DecoderBuilder { ... }
fn decoder() -> Decoder { ... }
}
Expand description
Module associated types required by both client and server
Required Associated Types§
type ClientConfig: ClientConfig
type Input: Input
type Output: Output
type OutputOutcome: OutputOutcome
type ConsensusItem: ModuleConsensusItem
type InputError: InputError
type OutputError: OutputError
Provided Methods§
fn decoder_builder() -> DecoderBuilder
fn decoder() -> Decoder
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.