#[non_exhaustive]#[repr(u16)]pub enum Op {
Invalid = 0,
Request = 1,
Response = 2,
Rst = 3,
Shutdown = 4,
Rw = 5,
CreditUpdate = 6,
CreditRequest = 7,
}
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.
Invalid = 0
Request = 1
Response = 2
Rst = 3
Shutdown = 4
Rw = 5
CreditUpdate = 6
CreditRequest = 7
Trait Implementations§
Source§impl TryFromPrimitive for Op
impl TryFromPrimitive for Op
Source§impl UnsafeFromPrimitive for Op
impl UnsafeFromPrimitive for Op
type Primitive = u16
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from
, from_unchecked
will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for Op
impl Eq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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