#[repr(u16)]
pub enum OpCode {
QUERY,
IQUERY,
STATUS,
NOTIFY,
UPDATE,
DSO,
UNKNOWN,
}
Variants
QUERY
IQUERY
STATUS
NOTIFY
UPDATE
DSO
UNKNOWN
Implementations
Trait Implementations
sourceimpl TryFrom<u16> for OpCode
impl TryFrom<u16> for OpCode
type Error = TryFromPrimitiveError<OpCode>
type Error = TryFromPrimitiveError<OpCode>
The type returned in the event of a conversion error.
sourcefn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for OpCode
impl TryFromPrimitive for OpCode
type Primitive = u16
const NAME: &'static str = "OpCode"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for OpCode
impl StructuralPartialEq for OpCode
Auto Trait Implementations
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnwindSafe for OpCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more