pub trait GraphCodec<B: WireFormatBackend>: Sized {
type Error;
// Required methods
fn encode(self, codec: &B::Codec) -> Result<B::Compact, Self::Error>;
fn decode(
response: &B::Compact,
codec: &B::Codec,
) -> 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".