#[repr(C, packed(1))]pub struct DevPathMsgUsbClass {
pub vendor: u16,
pub product: u16,
pub class: u8,
pub subclass: u8,
pub protocol: u8,
}Fields§
§vendor: u16§product: u16§class: u8§subclass: u8§protocol: u8Trait Implementations§
Source§impl Debug for DevPathMsgUsbClass
impl Debug for DevPathMsgUsbClass
Source§impl FromBytes for DevPathMsgUsbClass
impl FromBytes for DevPathMsgUsbClass
Source§impl FromZeros for DevPathMsgUsbClass
impl FromZeros for DevPathMsgUsbClass
Source§impl IntoBytes for DevPathMsgUsbClass
impl IntoBytes for DevPathMsgUsbClass
Source§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl PartialEq for DevPathMsgUsbClass
impl PartialEq for DevPathMsgUsbClass
Source§impl TryFromBytes for DevPathMsgUsbClass
impl TryFromBytes for DevPathMsgUsbClass
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Immutable for DevPathMsgUsbClass
impl StructuralPartialEq for DevPathMsgUsbClass
Auto Trait Implementations§
impl Freeze for DevPathMsgUsbClass
impl RefUnwindSafe for DevPathMsgUsbClass
impl Send for DevPathMsgUsbClass
impl Sync for DevPathMsgUsbClass
impl Unpin for DevPathMsgUsbClass
impl UnwindSafe for DevPathMsgUsbClass
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