pub trait ModuleInitParams: Serialize + DeserializeOwned {
type Local: DeserializeOwned + Serialize;
type Consensus: DeserializeOwned + Serialize;
// Required methods
fn from_parts(local: Self::Local, consensus: Self::Consensus) -> Self;
fn to_parts(self) -> (Self::Local, Self::Consensus);
}
Required Associated Types§
sourcetype Local: DeserializeOwned + Serialize
type Local: DeserializeOwned + Serialize
Locally configurable parameters for config generation
sourcetype Consensus: DeserializeOwned + Serialize
type Consensus: DeserializeOwned + Serialize
Consensus parameters for config generation
Required Methods§
sourcefn from_parts(local: Self::Local, consensus: Self::Consensus) -> Self
fn from_parts(local: Self::Local, consensus: Self::Consensus) -> Self
Assemble from the distinct parts
Object Safety§
This trait is not object safe.