#[repr(u16)]pub enum TerminationReason {
AdministrativelyClosed = 0,
UnspecifiedReason = 1,
OutOfResources = 2,
RedundantConnection = 3,
PermanentlyAdministrativelyClosed = 4,
}Variants§
AdministrativelyClosed = 0
UnspecifiedReason = 1
OutOfResources = 2
RedundantConnection = 3
PermanentlyAdministrativelyClosed = 4
Trait Implementations§
Source§impl Clone for TerminationReason
impl Clone for TerminationReason
Source§fn clone(&self) -> TerminationReason
fn clone(&self) -> TerminationReason
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 TerminationReason
impl Debug for TerminationReason
Source§impl From<TerminationReason> for u16
impl From<TerminationReason> for u16
Source§fn from(enum_value: TerminationReason) -> Self
fn from(enum_value: TerminationReason) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TerminationReason
impl PartialEq for TerminationReason
Source§impl TryFrom<u16> for TerminationReason
impl TryFrom<u16> for TerminationReason
Source§type Error = TryFromPrimitiveError<TerminationReason>
type Error = TryFromPrimitiveError<TerminationReason>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TerminationReason
impl TryFromPrimitive for TerminationReason
const NAME: &'static str = "TerminationReason"
type Primitive = u16
type Error = TryFromPrimitiveError<TerminationReason>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TerminationReason
impl StructuralPartialEq for TerminationReason
Auto Trait Implementations§
impl Freeze for TerminationReason
impl RefUnwindSafe for TerminationReason
impl Send for TerminationReason
impl Sync for TerminationReason
impl Unpin for TerminationReason
impl UnwindSafe for TerminationReason
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