#[repr(u8)]pub enum PeerDownReason {
Reserved = 0,
LocalSystemClosedNotificationPduFollows = 1,
LocalSystemClosedFsmEvenFollows = 2,
RemoteSystemClosedNotificationPduFollows = 3,
RemoteSystemsClosedNoData = 4,
PeerDeConfigured = 5,
LocalSystemClosedTlvDataFollows = 6,
}
Variants§
Reserved = 0
LocalSystemClosedNotificationPduFollows = 1
LocalSystemClosedFsmEvenFollows = 2
RemoteSystemClosedNotificationPduFollows = 3
RemoteSystemsClosedNoData = 4
PeerDeConfigured = 5
LocalSystemClosedTlvDataFollows = 6
Trait Implementations§
Source§impl Clone for PeerDownReason
impl Clone for PeerDownReason
Source§fn clone(&self) -> PeerDownReason
fn clone(&self) -> PeerDownReason
Returns a copy 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 PeerDownReason
impl Debug for PeerDownReason
Source§impl From<PeerDownReason> for u8
impl From<PeerDownReason> for u8
Source§fn from(enum_value: PeerDownReason) -> Self
fn from(enum_value: PeerDownReason) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PeerDownReason
impl PartialEq for PeerDownReason
Source§impl TryFrom<u8> for PeerDownReason
impl TryFrom<u8> for PeerDownReason
Source§type Error = TryFromPrimitiveError<PeerDownReason>
type Error = TryFromPrimitiveError<PeerDownReason>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PeerDownReason
impl TryFromPrimitive for PeerDownReason
const NAME: &'static str = "PeerDownReason"
type Primitive = u8
type Error = TryFromPrimitiveError<PeerDownReason>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PeerDownReason
impl StructuralPartialEq for PeerDownReason
Auto Trait Implementations§
impl Freeze for PeerDownReason
impl RefUnwindSafe for PeerDownReason
impl Send for PeerDownReason
impl Sync for PeerDownReason
impl Unpin for PeerDownReason
impl UnwindSafe for PeerDownReason
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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