pub enum Message {
Open(OpenMessage),
Update(UpdateMessage),
Notification(NotificationMessage),
Keepalive,
RouteRefresh(RouteRefreshMessage),
}Expand description
A decoded BGP message.
Variants§
Open(OpenMessage)
BGP OPEN message.
Update(UpdateMessage)
BGP UPDATE message.
Notification(NotificationMessage)
BGP NOTIFICATION message.
Keepalive
BGP KEEPALIVE message (no body).
RouteRefresh(RouteRefreshMessage)
BGP ROUTE-REFRESH message.
Implementations§
Source§impl Message
impl Message
Sourcepub fn message_type(&self) -> MessageType
pub fn message_type(&self) -> MessageType
Returns the message type.
Trait Implementations§
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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