pub enum Command {
Cmd16(Cmd16),
Cmd40(Cmd40),
Cmd42(Cmd42),
}
Expand description
Represents the variants for Class7 commands.
Variants§
Implementations§
Source§impl Command
impl Command
Sourcepub const fn command_index(&self) -> u8
pub const fn command_index(&self) -> u8
Gets the command index for the Command.
Sourcepub const fn command_type(&self) -> CommandType
pub const fn command_type(&self) -> CommandType
Gets the command type for the Command.
Sourcepub const fn response_type(&self) -> ResponseType
pub const fn response_type(&self) -> ResponseType
Gets the response type for the Command.
Trait Implementations§
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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