pub trait EthernetSerializationContext: SerializationContext {
// Required method
fn envelope_to_state(envelope: EthernetEnvelope) -> Self::ContextState;
}Expand description
A trait for Ethernet serialization contexts.
Required Methods§
Sourcefn envelope_to_state(envelope: EthernetEnvelope) -> Self::ContextState
fn envelope_to_state(envelope: EthernetEnvelope) -> Self::ContextState
Converts an EthernetEnvelope into the serialization context’s state.
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.