Trait zettabgp::message::BgpMessage
source · pub trait BgpMessage {
// Required methods
fn decode_from(
&mut self,
peer: &BgpSessionParams,
buf: &[u8]
) -> Result<(), BgpError>;
fn encode_to(
&self,
peer: &BgpSessionParams,
buf: &mut [u8]
) -> Result<usize, BgpError>;
}
Expand description
trait BgpMessage represents BGP protocol message