pub enum IdentifierKind {
MachineId,
Mac,
CpuSerial,
SerialFile,
}Expand description
Kind of a hardware identifier.
Variants§
MachineId
Linux /etc/machine-id, Windows MachineGuid — the OS installation.
Mac
MAC address of one physical network interface (label = interface name).
CpuSerial
CPU serial from /proc/cpuinfo (ARM SoCs; x86 has none).
SerialFile
First line of a provisioned serial-number file (e.g. a Brinkhaus SN).
Implementations§
Trait Implementations§
Source§impl Clone for IdentifierKind
impl Clone for IdentifierKind
Source§fn clone(&self) -> IdentifierKind
fn clone(&self) -> IdentifierKind
Returns a copy 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 IdentifierKind
impl Debug for IdentifierKind
Source§impl<'de> Deserialize<'de> for IdentifierKind
impl<'de> Deserialize<'de> for IdentifierKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for IdentifierKind
impl Hash for IdentifierKind
Source§impl Ord for IdentifierKind
impl Ord for IdentifierKind
Source§fn cmp(&self, other: &IdentifierKind) -> Ordering
fn cmp(&self, other: &IdentifierKind) -> 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 IdentifierKind
impl PartialEq for IdentifierKind
Source§impl PartialOrd for IdentifierKind
impl PartialOrd for IdentifierKind
Source§impl Serialize for IdentifierKind
impl Serialize for IdentifierKind
impl Copy for IdentifierKind
impl Eq for IdentifierKind
impl StructuralPartialEq for IdentifierKind
Auto Trait Implementations§
impl Freeze for IdentifierKind
impl RefUnwindSafe for IdentifierKind
impl Send for IdentifierKind
impl Sync for IdentifierKind
impl Unpin for IdentifierKind
impl UnwindSafe for IdentifierKind
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