#[repr(u8)]
pub enum Command {
ListFields,
GetFieldName,
GetFieldValue,
Unknown,
}
Variants
ListFields
GetFieldName
GetFieldValue
Unknown
Trait Implementations
sourceimpl TryFrom<u8> for Command
impl TryFrom<u8> for Command
type Error = TryFromPrimitiveError<Command>
type Error = TryFromPrimitiveError<Command>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for Command
impl TryFromPrimitive for Command
type Primitive = u8
const NAME: &'static str = "Command"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for Command
impl Eq for Command
impl StructuralEq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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