pub struct PhysicalDeviceKey(/* private fields */);Expand description
A configuration key backed by enough information to identify one physical device across inventory snapshots and process restarts.
Implementations§
Source§impl PhysicalDeviceKey
impl PhysicalDeviceKey
Sourcepub fn parse(value: &str) -> Option<Self>
pub fn parse(value: &str) -> Option<Self>
Parse a key emitted by DeviceStableId::physical_key.
Legacy model-scoped configuration keys intentionally return None;
callers can use that distinction when applying compatibility behavior
without treating a model identifier as a physical identity.
Sourcepub fn is_transient(value: &str) -> bool
pub fn is_transient(value: &str) -> bool
Whether value is a structurally valid runtime key whose only device
identity is the all-zero unit id.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consume the wrapper and return its serialized configuration key.
Trait Implementations§
Source§impl Clone for PhysicalDeviceKey
impl Clone for PhysicalDeviceKey
Source§fn clone(&self) -> PhysicalDeviceKey
fn clone(&self) -> PhysicalDeviceKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PhysicalDeviceKey
impl Debug for PhysicalDeviceKey
impl Eq for PhysicalDeviceKey
Source§impl Hash for PhysicalDeviceKey
impl Hash for PhysicalDeviceKey
Source§impl Ord for PhysicalDeviceKey
impl Ord for PhysicalDeviceKey
Source§fn cmp(&self, other: &PhysicalDeviceKey) -> Ordering
fn cmp(&self, other: &PhysicalDeviceKey) -> Ordering
1.21.0 (const: unstable) · 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 PhysicalDeviceKey
impl PartialEq for PhysicalDeviceKey
Source§impl PartialOrd for PhysicalDeviceKey
impl PartialOrd for PhysicalDeviceKey
impl StructuralPartialEq for PhysicalDeviceKey
Auto Trait Implementations§
impl Freeze for PhysicalDeviceKey
impl RefUnwindSafe for PhysicalDeviceKey
impl Send for PhysicalDeviceKey
impl Sync for PhysicalDeviceKey
impl Unpin for PhysicalDeviceKey
impl UnsafeUnpin for PhysicalDeviceKey
impl UnwindSafe for PhysicalDeviceKey
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.