pub trait InherentDigest {
type Value: Send + Sync + 'static;
// Required methods
fn from_inherent_data(
inherent_data: &InherentData,
) -> Result<Vec<DigestItem>, Box<dyn Error + Send + Sync>>;
fn value_from_digest(
digests: &[DigestItem],
) -> Result<Self::Value, Box<dyn Error + Send + Sync>>;
}
Expand description
Defines parts of inherent data that should be included in header digest
Required Associated Types§
Required 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.