pub struct FixedDeviceIdentity(pub String);Expand description
Caller-provided fixed id (parity with Swift FixedDeviceIdentity), for tests/CI.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl DeviceIdentity for FixedDeviceIdentity
impl DeviceIdentity for FixedDeviceIdentity
fn stable_id(&self) -> String
Source§fn hardware_id(&self) -> Option<String>
fn hardware_id(&self) -> Option<String>
True OS/hardware machine ID if available (NO random fallback).
None when the
platform has no stable hardware identifier. Used only for machine_hash on the
keyless heartbeat — never substitute the random persisted_fallback_id here, as
that would defeat cross-install dedup on the server.Auto Trait Implementations§
impl Freeze for FixedDeviceIdentity
impl RefUnwindSafe for FixedDeviceIdentity
impl Send for FixedDeviceIdentity
impl Sync for FixedDeviceIdentity
impl Unpin for FixedDeviceIdentity
impl UnsafeUnpin for FixedDeviceIdentity
impl UnwindSafe for FixedDeviceIdentity
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