Skip to main content

ParseFromWithMut

Trait ParseFromWithMut 

Source
pub trait ParseFromWithMut<'a, Ctx>: Sized {
    type Error;

    // Required method
    fn parse(
        cur: &mut SliceReader<'a>,
        ctx: &mut Ctx,
    ) -> Result<Self, Self::Error>;
}
Expand description

Parse Self from the cursor with a mutable context. Used for stateful protocols (e.g. BGP, where capabilities update the context).

Required Associated Types§

Required Methods§

Source

fn parse(cur: &mut SliceReader<'a>, ctx: &mut Ctx) -> Result<Self, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§