/// Returns the body and upper-layer Protocol Number.
///
/// If extension headers failed to parse, `body_proto` returns
/// `Err(ExtHdrParseError)`. Extension headers must be parsed in order to
/// find the bounds of the upper-layer payload and to find that last
/// extension header's Next Header field, which is the Protocol Number of
/// the upper-layer payload.
///
/// The returned body will be [`MaybeParsed::Complete`] if all the body
/// bytes were consumed (as stated by the header's payload length value) or
/// [`MaybeParsed::Incomplete`] containing the bytes that were present
/// otherwise.
Returns the body and upper-layer Protocol Number.
If extension headers failed to parse, `body_proto` returns
`Err(ExtHdrParseError)`. Extension headers must be parsed in order to
find the bounds of the upper-layer payload and to find that last
extension header's Next Header field, which is the Protocol Number of
the upper-layer payload.

The returned body will be [`MaybeParsed::Complete`] if all the body
bytes were consumed (as stated by the header's payload length value) or
[`MaybeParsed::Incomplete`] containing the bytes that were present
otherwise.
Returns the body and upper - layer Protocol Number . If extension headers failed to parse ` body_proto ` returns ` Err ( ExtHdrParseError ) ` . Extension headers must be parsed in order to find the bounds of the upper - layer payload and to find that last extension header ' s Next Header field which is the Protocol Number of the upper - layer payload . The returned body will be [ ` MaybeParsed :: Complete ` ] if all the body bytes were consumed ( as stated by the header ' s payload length value ) or [ ` MaybeParsed :: Incomplete ` ] containing the bytes that were present otherwise .
pub fn body_proto(&self) -> Result<(MaybeParsed<&[u8], &[u8]>, Ipv6Proto), ExtHdrParseError> {
        self.body_proto
            .as_ref()
            .map(|(mp, proto)| {
                (mp.as_ref().map(|b| b.deref()).map_incomplete(|b| b.deref()), *proto)
            })
            .map_err(|e| *e)
    }
pub fn body_proto ( & self ) -> Result < ( MaybeParsed < & [ u8 ] , & [ u8 ] > , Ipv6Proto ) , ExtHdrParseError > { self . body_proto . as_ref ( ) . map ( | ( mp , proto ) | { ( mp . as_ref ( ) . map ( | b | b . deref ( ) ) . map_incomplete ( | b | b . deref ( ) ) , * proto ) } ) . map_err ( | e | * e ) }
Returns the body and upper-layer Protocol Number.
Returns the body and upper - layer Protocol Number .
&self