#[repr(u16)]pub enum ContainerType {
Undefined = 0,
Command = 1,
Data = 2,
Response = 3,
Event = 4,
}Expand description
MTP / PTP container type.
Variants§
Undefined = 0
Undefined container type.
Command = 1
Command block (Bulk OUT).
Data = 2
Data block (Bulk IN or Bulk OUT).
Response = 3
Response block (Bulk IN).
Event = 4
Event block (Interrupt IN).
Trait Implementations§
Source§impl Clone for ContainerType
impl Clone for ContainerType
impl Copy for ContainerType
Source§impl Debug for ContainerType
impl Debug for ContainerType
impl Eq for ContainerType
Source§impl Format for ContainerType
impl Format for ContainerType
Source§impl PartialEq for ContainerType
impl PartialEq for ContainerType
impl StructuralPartialEq for ContainerType
Auto Trait Implementations§
impl Forget for ContainerType
impl Freeze for ContainerType
impl Move for ContainerType
impl RefUnwindSafe for ContainerType
impl Send for ContainerType
impl Sync for ContainerType
impl Unpin for ContainerType
impl UnsafeUnpin for ContainerType
impl UnwindSafe for ContainerType
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