pub struct DeviceVersion {
pub major: u8,
pub minor: u8,
pub build: u8,
}Expand description
The version of a CTAPHID device.
Fields§
§major: u8The major device version.
minor: u8The minor device version.
build: u8The build device version.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceVersion
impl Clone for DeviceVersion
Source§fn clone(&self) -> DeviceVersion
fn clone(&self) -> DeviceVersion
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 DeviceVersion
impl Debug for DeviceVersion
Source§impl Default for DeviceVersion
impl Default for DeviceVersion
Source§fn default() -> DeviceVersion
fn default() -> DeviceVersion
Returns the “default value” for a type. Read more
Source§impl From<DeviceVersion> for [u8; 3]
impl From<DeviceVersion> for [u8; 3]
Source§fn from(version: DeviceVersion) -> Self
fn from(version: DeviceVersion) -> Self
Converts to this type from the input type.
Source§impl Ord for DeviceVersion
impl Ord for DeviceVersion
Source§fn cmp(&self, other: &DeviceVersion) -> Ordering
fn cmp(&self, other: &DeviceVersion) -> Ordering
1.21.0 · 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
Source§impl PartialEq for DeviceVersion
impl PartialEq for DeviceVersion
Source§impl PartialOrd for DeviceVersion
impl PartialOrd for DeviceVersion
impl Copy for DeviceVersion
impl Eq for DeviceVersion
impl StructuralPartialEq for DeviceVersion
Auto Trait Implementations§
impl Freeze for DeviceVersion
impl RefUnwindSafe for DeviceVersion
impl Send for DeviceVersion
impl Sync for DeviceVersion
impl Unpin for DeviceVersion
impl UnwindSafe for DeviceVersion
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