pub enum HWIDComponent {
SystemID,
CPUCores,
OSName,
Username,
MachineName,
MacAddress,
CPUID,
FileToken(&'static str),
DriveSerial,
}
Expand description
The components that can be used to build the HWID.
Variants§
SystemID
System UUID
CPUCores
Number of CPU Cores
OSName
Name of the OS
Username
Current Username
MachineName
Host machine name
MacAddress
Mac Address
CPUID
CPU Vendor ID
FileToken(&'static str)
The contents of a file
DriveSerial
UUID of the root disk
Trait Implementations§
Source§impl Hash for HWIDComponent
impl Hash for HWIDComponent
Source§impl PartialEq for HWIDComponent
impl PartialEq for HWIDComponent
impl Eq for HWIDComponent
impl StructuralPartialEq for HWIDComponent
Auto Trait Implementations§
impl Freeze for HWIDComponent
impl RefUnwindSafe for HWIDComponent
impl Send for HWIDComponent
impl Sync for HWIDComponent
impl Unpin for HWIDComponent
impl UnwindSafe for HWIDComponent
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more