pub struct CommandCode {
pub is_extended: bool,
pub cmd_type: CommandType,
pub subsystem: MTSubsystem,
pub id: u8,
}Fields§
§is_extended: bool§cmd_type: CommandType§subsystem: MTSubsystem§id: u8Implementations§
Source§impl CommandCode
impl CommandCode
pub fn try_decode(cursor: &mut Cursor<&[u8]>) -> Result<Self, Error>
pub fn encode_into(&self, buffer: &mut Vec<u8>)
Trait Implementations§
Source§impl Clone for CommandCode
impl Clone for CommandCode
Source§fn clone(&self) -> CommandCode
fn clone(&self) -> CommandCode
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 CommandCode
impl Debug for CommandCode
Source§impl PartialEq for CommandCode
impl PartialEq for CommandCode
impl StructuralPartialEq for CommandCode
Auto Trait Implementations§
impl Freeze for CommandCode
impl RefUnwindSafe for CommandCode
impl Send for CommandCode
impl Sync for CommandCode
impl Unpin for CommandCode
impl UnwindSafe for CommandCode
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