pub enum BgpError {
Reserved,
MessageHeaderError(MessageHeaderErrorSubcode),
OpenMessageError(OpenMessageErrorSubcode),
UpdateMessageError(UpdateMessageErrorSubcode),
HoldTimerExpired,
BgpFiniteStateMachineError(BgpFiniteStateMachineErrorSubcode),
BgpCeaseNotification(BgpCeaseNotificationMessageSubcode),
BgpRouteFreshMessageError(BgpRouteRefreshMessageErrorSubcode),
}
Expand description
BGP Error Subcode enum.
https://www.iana.org/assignments/bgp-parameters/bgp-parameters.xhtml#bgp-parameters-4
Variants§
Reserved
MessageHeaderError(MessageHeaderErrorSubcode)
OpenMessageError(OpenMessageErrorSubcode)
UpdateMessageError(UpdateMessageErrorSubcode)
HoldTimerExpired
BgpFiniteStateMachineError(BgpFiniteStateMachineErrorSubcode)
BgpCeaseNotification(BgpCeaseNotificationMessageSubcode)
BgpRouteFreshMessageError(BgpRouteRefreshMessageErrorSubcode)
Trait Implementations§
impl Copy for BgpError
impl Eq for BgpError
impl StructuralPartialEq for BgpError
Auto Trait Implementations§
impl Freeze for BgpError
impl RefUnwindSafe for BgpError
impl Send for BgpError
impl Sync for BgpError
impl Unpin for BgpError
impl UnwindSafe for BgpError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more