Skip to main content

IpSerializationContext

Trait IpSerializationContext 

Source
pub trait IpSerializationContext<I: IpExt>: SerializationContext {
    // Required method
    fn envelope_to_state(envelope: IpEnvelope<I>) -> Self::ContextState;
}
Expand description

A trait for IP serialization contexts.

Required Methods§

Source

fn envelope_to_state(envelope: IpEnvelope<I>) -> Self::ContextState

Converts an IpEnvelope 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.

Implementations on Foreign Types§

Source§

impl<I: IpExt> IpSerializationContext<I> for NoOpSerializationContext

Implementors§