#[non_exhaustive]pub enum Basis {
Install,
Hardware,
}Available on crate feature
device-id only.Expand description
What an id is anchored to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Install
This OS installation. Unprivileged everywhere; changes on reinstall. macOS has no installation id and uses the platform UUID (the report says so).
Hardware
The hardware: the firmware UUID, then the board serial. Survives reinstalls. Linux needs root (the DMI identifier files are readable by root only).
Trait Implementations§
impl Copy for Basis
impl Eq for Basis
impl StructuralPartialEq for Basis
Auto Trait Implementations§
impl Forget for Basis
impl Freeze for Basis
impl Move for Basis
impl RefUnwindSafe for Basis
impl Send for Basis
impl Sync for Basis
impl Unpin for Basis
impl UnsafeUnpin for Basis
impl UnwindSafe for Basis
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