#[repr(u16)]pub enum TerminationTlvType {
String = 0,
Reason = 1,
}
Expand description
Type-Length-Value Type
For more, see: https://datatracker.ietf.org/doc/html/rfc1213
Variants§
Trait Implementations§
Source§impl Clone for TerminationTlvType
impl Clone for TerminationTlvType
Source§fn clone(&self) -> TerminationTlvType
fn clone(&self) -> TerminationTlvType
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 TerminationTlvType
impl Debug for TerminationTlvType
Source§impl From<TerminationTlvType> for u16
impl From<TerminationTlvType> for u16
Source§fn from(enum_value: TerminationTlvType) -> Self
fn from(enum_value: TerminationTlvType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TerminationTlvType
impl PartialEq for TerminationTlvType
Source§impl TryFrom<u16> for TerminationTlvType
impl TryFrom<u16> for TerminationTlvType
Source§type Error = TryFromPrimitiveError<TerminationTlvType>
type Error = TryFromPrimitiveError<TerminationTlvType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TerminationTlvType
impl TryFromPrimitive for TerminationTlvType
const NAME: &'static str = "TerminationTlvType"
type Primitive = u16
type Error = TryFromPrimitiveError<TerminationTlvType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TerminationTlvType
impl StructuralPartialEq for TerminationTlvType
Auto Trait Implementations§
impl Freeze for TerminationTlvType
impl RefUnwindSafe for TerminationTlvType
impl Send for TerminationTlvType
impl Sync for TerminationTlvType
impl Unpin for TerminationTlvType
impl UnwindSafe for TerminationTlvType
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