Struct zettabgp::message::notification::BgpNotificationMessage
source · pub struct BgpNotificationMessage {
pub error_code: u8,
pub error_subcode: u8,
pub data: u16,
}
Expand description
BGP notification message
Fields§
§error_code: u8
error code
error_subcode: u8
error sub-code
data: u16
extra data
Implementations§
source§impl BgpNotificationMessage
impl BgpNotificationMessage
sourcepub fn new() -> BgpNotificationMessage
pub fn new() -> BgpNotificationMessage
constructs new empty message
sourcepub fn error_text(&self) -> String
pub fn error_text(&self) -> String
returns human-friendly error interpretation.
Trait Implementations§
source§impl BgpMessage for BgpNotificationMessage
impl BgpMessage for BgpNotificationMessage
source§impl Debug for BgpNotificationMessage
impl Debug for BgpNotificationMessage
source§impl Default for BgpNotificationMessage
impl Default for BgpNotificationMessage
Auto Trait Implementations§
impl RefUnwindSafe for BgpNotificationMessage
impl Send for BgpNotificationMessage
impl Sync for BgpNotificationMessage
impl Unpin for BgpNotificationMessage
impl UnwindSafe for BgpNotificationMessage
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