pub struct Builder { /* private fields */ }Available on crate feature
device-id only.Expand description
See builder.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn basis(self, basis: Basis) -> Self
pub fn basis(self, basis: Basis) -> Self
What the id rests on; the default is Basis::Install.
Sourcepub fn secret(self, key: [u8; 32]) -> Self
pub fn secret(self, key: [u8; 32]) -> Self
An application secret. With one, nobody without it can compute or correlate the id, even with root on the machine: use one when ids are sent to a server. Wiped when the builder is dropped.
Sourcepub fn fallback(self, on: bool) -> Self
pub fn fallback(self, on: bool) -> Self
Lets Basis::Hardware fall back to Basis::Install when hardware
sources are denied. The id is then a different one, which is why this
is off by default.
Sourcepub fn fingerprint(&self) -> Result<Fingerprint>
pub fn fingerprint(&self) -> Result<Fingerprint>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Builder
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
impl UnwindSafe for Builder
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