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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".