pub struct ContainerHeader {
pub length: u32,
pub container_type: ContainerType,
pub code: u16,
pub transaction_id: u32,
}Expand description
12-byte MTP / PTP generic container header.
Fields§
§length: u32Total container length in bytes (including this 12-byte header), or STREAMING_CONTAINER_LEN.
container_type: ContainerTypeContainer phase type.
code: u16Operation, response, or event code.
transaction_id: u32Host-assigned transaction ID (or session ID for certain events).
Implementations§
Trait Implementations§
Source§impl Clone for ContainerHeader
impl Clone for ContainerHeader
impl Copy for ContainerHeader
Source§impl Debug for ContainerHeader
impl Debug for ContainerHeader
impl Eq for ContainerHeader
Source§impl Format for ContainerHeaderwhere
ContainerType: Format,
impl Format for ContainerHeaderwhere
ContainerType: Format,
Source§impl PartialEq for ContainerHeader
impl PartialEq for ContainerHeader
impl StructuralPartialEq for ContainerHeader
Auto Trait Implementations§
impl Forget for ContainerHeader
impl Freeze for ContainerHeader
impl Move for ContainerHeader
impl RefUnwindSafe for ContainerHeader
impl Send for ContainerHeader
impl Sync for ContainerHeader
impl Unpin for ContainerHeader
impl UnsafeUnpin for ContainerHeader
impl UnwindSafe for ContainerHeader
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