#[repr(u8)]pub enum PatchSection {
Device = 0,
Config = 1,
Report = 2,
String = 3,
Bos = 4,
}Expand description
Descriptor a patch overwrites (§3.14).
Variants§
Device = 0
18-byte device descriptor; cfg/index ignored.
Config = 1
Configuration descriptor; cfg is the configuration index, from 0.
Report = 2
Interface report descriptor; cfg is the configuration index, index the interface number.
String = 3
String descriptor; index is the string index (not 0). Replaces the whole string: <=126 bytes,
one UTF-16 code unit each; offset ignored.
Bos = 4
BOS descriptor; cfg/index ignored.
Implementations§
Trait Implementations§
Source§impl Clone for PatchSection
impl Clone for PatchSection
impl Copy for PatchSection
Source§impl Debug for PatchSection
impl Debug for PatchSection
Source§impl Default for PatchSection
impl Default for PatchSection
impl Eq for PatchSection
Source§impl Hash for PatchSection
impl Hash for PatchSection
Source§impl Ord for PatchSection
impl Ord for PatchSection
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PatchSection
impl PartialEq for PatchSection
Source§impl PartialOrd for PatchSection
impl PartialOrd for PatchSection
impl StructuralPartialEq for PatchSection
Auto Trait Implementations§
impl Freeze for PatchSection
impl RefUnwindSafe for PatchSection
impl Send for PatchSection
impl Sync for PatchSection
impl Unpin for PatchSection
impl UnsafeUnpin for PatchSection
impl UnwindSafe for PatchSection
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