#[repr(u32)]pub enum ExternalIdentifiers {
SerialNumber = 0,
Anonymous = 1,
}Expand description
When set, the system will prefer to present generic, fixed identifiers when challenged
by external systems. The canonical use case for this is the serial number field in the
USB device descriptor: normally, ExternalIdentifiers is 0, which means the device will
present a semi-unique serial number (this is useful for users who plug in multiple devices
and want to tell them apart). However, privacy-conscious users who don’t need or want
to tell devices apart can increment this OWC and then the USB serial number will be
replaced with a fixed pattern that is common across all devices.
Variants§
Trait Implementations§
Source§impl Clone for ExternalIdentifiers
impl Clone for ExternalIdentifiers
Source§fn clone(&self) -> ExternalIdentifiers
fn clone(&self) -> ExternalIdentifiers
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 ExternalIdentifiers
impl Debug for ExternalIdentifiers
Source§impl OneWayEncoding for ExternalIdentifiers
impl OneWayEncoding for ExternalIdentifiers
Source§impl PartialEq for ExternalIdentifiers
impl PartialEq for ExternalIdentifiers
Source§impl TryFrom<u32> for ExternalIdentifiers
impl TryFrom<u32> for ExternalIdentifiers
impl Copy for ExternalIdentifiers
impl StructuralPartialEq for ExternalIdentifiers
Auto Trait Implementations§
impl Freeze for ExternalIdentifiers
impl RefUnwindSafe for ExternalIdentifiers
impl Send for ExternalIdentifiers
impl Sync for ExternalIdentifiers
impl Unpin for ExternalIdentifiers
impl UnwindSafe for ExternalIdentifiers
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