fedimint_core::config

Trait TypedServerModuleConsensusConfig

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

Provided Methods§

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.

Implementors§