Function bgpkit_parser::parser::bmp::messages::parse_per_peer_header

source ·
pub fn parse_per_peer_header(
    data: &mut Bytes
) -> Result<BmpPerPeerHeader, ParserBmpError>
Expand description

Parses a BMP per-peer header from the provided byte data.

§Arguments

  • data - A mutable reference to the byte data representing the per-peer header.

§Returns

  • Ok(BmpPerPeerHeader) - If the parsing is successful, returns the parsed per-peer header.
  • Err(ParserBmpError) - If an error occurs during parsing, returns the corresponding error.