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> { ... }
}
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>
Object Safety§
This trait is not object safe.