pub enum MessageData {
Unimplemented,
Initiation(Vec<InformationTlv>),
PeerUp((PeerHeader, PeerUp)),
PeerDown((PeerHeader, PeerDown)),
RouteMonitoring((PeerHeader, Update)),
}Expand description
There are a few different types of BMP message, refer to RFC7xxx for details. This enum encapsulates the different types
Variants§
Unimplemented
Used to represent a message type I haven’t implemented yet
Initiation(Vec<InformationTlv>)
Initiation message, this is sent once at the start of a BMP session to advertise speaker information
PeerUp((PeerHeader, PeerUp))
PeerUp messages are sent in bulk when a session is initially established, then over the life of the session as peers change status
PeerDown((PeerHeader, PeerDown))
PeerDown messages are sent when a peer disconnects
RouteMonitoring((PeerHeader, Update))
RouteMonitoring messages are state-compressed BGP messages
Trait Implementations§
Source§impl Clone for MessageData
impl Clone for MessageData
Source§fn clone(&self) -> MessageData
fn clone(&self) -> MessageData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MessageData
impl RefUnwindSafe for MessageData
impl Send for MessageData
impl Sync for MessageData
impl Unpin for MessageData
impl UnwindSafe for MessageData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more