pub struct DeviceDescriptorPartial {
pub max_packet_size0: u8,
}Expand description
Partial version of DeviceDescriptor.
This descriptor is used to read max_packet_size0 before SET_ADDRESS.
Fields§
§max_packet_size0: u8Trait Implementations§
Source§impl Clone for DeviceDescriptorPartial
impl Clone for DeviceDescriptorPartial
Source§fn clone(&self) -> DeviceDescriptorPartial
fn clone(&self) -> DeviceDescriptorPartial
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 DeviceDescriptorPartial
impl Debug for DeviceDescriptorPartial
Source§impl PartialEq for DeviceDescriptorPartial
impl PartialEq for DeviceDescriptorPartial
Source§impl USBDescriptor for DeviceDescriptorPartial
impl USBDescriptor for DeviceDescriptorPartial
type Error = DescriptorError
fn try_from_bytes(buf: &[u8]) -> Result<Self, Self::Error>
impl Copy for DeviceDescriptorPartial
impl Eq for DeviceDescriptorPartial
impl StructuralPartialEq for DeviceDescriptorPartial
Auto Trait Implementations§
impl Freeze for DeviceDescriptorPartial
impl RefUnwindSafe for DeviceDescriptorPartial
impl Send for DeviceDescriptorPartial
impl Sync for DeviceDescriptorPartial
impl Unpin for DeviceDescriptorPartial
impl UnwindSafe for DeviceDescriptorPartial
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