#[non_exhaustive]pub enum PeerDown {
LocalShutdown(Notification),
LocalTerminate(u16),
RemoteShutdown(Notification),
RemoteTerminate,
ConfigurationChange,
}Expand description
Peer Down
The Peer Down message is used to indicate that the collector will no longer be receiving updates for a given neighbour, including the reason for the change
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LocalShutdown(Notification)
The session was cleanly shutdown
LocalTerminate(u16)
The session was terminated because the underlying transport session was terminated, no NOTIFICATION was sent or received
RemoteShutdown(Notification)
The session was cleanly shutdown by the remote peer
RemoteTerminate
The session was terminated because the underlying transport session was terminated, no NOTIFICATION was sent or received
ConfigurationChange
The session hasn’t necessarily been torn down, but a configuration change on the BMP speaker means the collector will no longer receive updates for the session
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeerDown
impl RefUnwindSafe for PeerDown
impl Send for PeerDown
impl Sync for PeerDown
impl Unpin for PeerDown
impl UnwindSafe for PeerDown
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