pub trait PacketParse<'buf: 'scratch, 'scratch> {
    type Parsed;

    // Required method
    fn parse(
        src: &'buf [u8],
        scratch: &'scratch mut ParseScratch<'buf>
    ) -> Result<Self::Parsed, ParseError>;
}

Required Associated Types§

Required Methods§

source

fn parse( src: &'buf [u8], scratch: &'scratch mut ParseScratch<'buf> ) -> Result<Self::Parsed, ParseError>

Implementors§

source§

impl<'buf: 'scratch, 'scratch> PacketParse<'buf, 'scratch> for Request<'buf, 'scratch, 'scratch>

§

type Parsed = Request<'buf, 'scratch, 'scratch>

source§

impl<'buf: 'scratch, 'scratch> PacketParse<'buf, 'scratch> for Response<'buf, 'scratch, 'scratch>

§

type Parsed = Response<'buf, 'scratch, 'scratch>