pub enum NotificationCode {
MessageHeader,
OpenMessage,
UpdateMessage,
HoldTimerExpired,
FsmError,
Cease,
Unknown(u8),
}Expand description
RFC 4271 §4.5 — NOTIFICATION error codes.
Known codes (1–6) have named variants. Unknown codes from the wire are
preserved via Unknown(u8) so the original byte is never lost.
Variants§
MessageHeader
Error in the message header (code 1).
OpenMessage
Error in the OPEN message (code 2).
UpdateMessage
Error in the UPDATE message (code 3).
HoldTimerExpired
Hold timer expired without receiving a KEEPALIVE or UPDATE (code 4).
FsmError
Finite state machine error (code 5).
Cease
Administrative or resource-related session termination (code 6).
Unknown(u8)
A code value not defined in RFC 4271. The raw byte is preserved for logging and re-encoding.
Implementations§
Trait Implementations§
Source§impl Clone for NotificationCode
impl Clone for NotificationCode
Source§fn clone(&self) -> NotificationCode
fn clone(&self) -> NotificationCode
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 moreSource§impl Debug for NotificationCode
impl Debug for NotificationCode
Source§impl Display for NotificationCode
impl Display for NotificationCode
Source§impl Hash for NotificationCode
impl Hash for NotificationCode
Source§impl PartialEq for NotificationCode
impl PartialEq for NotificationCode
impl Copy for NotificationCode
impl Eq for NotificationCode
impl StructuralPartialEq for NotificationCode
Auto Trait Implementations§
impl Freeze for NotificationCode
impl RefUnwindSafe for NotificationCode
impl Send for NotificationCode
impl Sync for NotificationCode
impl Unpin for NotificationCode
impl UnsafeUnpin for NotificationCode
impl UnwindSafe for NotificationCode
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