#[non_exhaustive]pub enum SourceState {
Present,
Absent,
Placeholder,
PermissionDenied,
Unsupported,
}Available on crate feature
device-id only.Expand description
What became of reading a source.
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.
Present
A usable value exists.
Absent
No value exists.
Placeholder
The value is one manufacturers and hypervisors ship, treated as absent.
PermissionDenied
The OS refused; on Linux the DMI identifiers need root.
Unsupported
This OS has no such source.
Trait Implementations§
Source§impl Clone for SourceState
impl Clone for SourceState
impl Copy for SourceState
Source§impl Debug for SourceState
impl Debug for SourceState
impl Eq for SourceState
Source§impl Hash for SourceState
impl Hash for SourceState
Source§impl PartialEq for SourceState
impl PartialEq for SourceState
impl StructuralPartialEq for SourceState
Auto Trait Implementations§
impl Forget for SourceState
impl Freeze for SourceState
impl Move for SourceState
impl RefUnwindSafe for SourceState
impl Send for SourceState
impl Sync for SourceState
impl Unpin for SourceState
impl UnsafeUnpin for SourceState
impl UnwindSafe for SourceState
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