pub struct CommandBlock {
pub operation: u16,
pub transaction_id: u32,
pub params: [u32; 5],
pub param_count: u8,
}Expand description
Decoded MTP Command container (Bulk OUT).
Fields§
§operation: u16Operation code (see op).
transaction_id: u32Transaction ID assigned by the host.
params: [u32; 5]Up to 5 operation parameters.
param_count: u8Number of valid entries in params (0..=5).
Implementations§
Trait Implementations§
Source§impl Clone for CommandBlock
impl Clone for CommandBlock
impl Copy for CommandBlock
Source§impl Debug for CommandBlock
impl Debug for CommandBlock
impl Eq for CommandBlock
Source§impl Format for CommandBlock
impl Format for CommandBlock
Source§impl PartialEq for CommandBlock
impl PartialEq for CommandBlock
impl StructuralPartialEq for CommandBlock
Auto Trait Implementations§
impl Forget for CommandBlock
impl Freeze for CommandBlock
impl Move for CommandBlock
impl RefUnwindSafe for CommandBlock
impl Send for CommandBlock
impl Sync for CommandBlock
impl Unpin for CommandBlock
impl UnsafeUnpin for CommandBlock
impl UnwindSafe for CommandBlock
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