pub trait DagCodec<B: BackendExt>: Sized {
type Error;
// Required methods
fn encode(self) -> Result<B::Compact, Self::Error>;
fn decode(response: &B::Compact) -> Result<Self, Self::Error>;
}Expand description
An entry trait that handles the values of a fan-in/fanout entry
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".