#[repr(u8)]pub enum OperationCode {
AbortEntireQueue = 1,
AbortTaskID = 2,
}
Expand description
Represents the operation code field for the Q_MANAGEMENT
(CMD43
) command.
Variants§
Implementations§
Source§impl OperationCode
impl OperationCode
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new OperationCode.
Sourcepub const fn from_raw_unchecked(val: u8) -> Self
pub const fn from_raw_unchecked(val: u8) -> Self
Sourcepub const fn from_raw(val: u8) -> Result<Self, Error>
pub const fn from_raw(val: u8) -> Result<Self, Error>
Attempts to convert a u8
into a OperationCode.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a OperationCode into a u8
.
Trait Implementations§
Source§impl Clone for OperationCode
impl Clone for OperationCode
Source§fn clone(&self) -> OperationCode
fn clone(&self) -> OperationCode
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 OperationCode
impl Debug for OperationCode
Source§impl Default for OperationCode
impl Default for OperationCode
Source§impl From<OperationCode> for u8
impl From<OperationCode> for u8
Source§fn from(val: OperationCode) -> Self
fn from(val: OperationCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OperationCode
impl PartialEq for OperationCode
Source§impl TryFrom<u8> for OperationCode
impl TryFrom<u8> for OperationCode
impl Copy for OperationCode
impl Eq for OperationCode
impl StructuralPartialEq for OperationCode
Auto Trait Implementations§
impl Freeze for OperationCode
impl RefUnwindSafe for OperationCode
impl Send for OperationCode
impl Sync for OperationCode
impl Unpin for OperationCode
impl UnwindSafe for OperationCode
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