pub trait TypedServerModuleConsensusConfig:
DeserializeOwned
+ Serialize
+ Encodable
+ Decodable {
// Required methods
fn kind(&self) -> ModuleKind;
fn version(&self) -> ModuleConsensusVersion;
// Provided method
fn from_erased(
erased: &ServerModuleConsensusConfig,
) -> Result<Self, ModuleConfigError> { ... }
}Expand description
Consensus-critical part of a server side module config
Required Methods§
fn kind(&self) -> ModuleKind
fn version(&self) -> ModuleConsensusVersion
Provided Methods§
fn from_erased( erased: &ServerModuleConsensusConfig, ) -> Result<Self, ModuleConfigError>
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.