#[non_exhaustive]pub enum HardwareProbe {
Available(HardwareKind),
Absent,
Indeterminate {
detail: String,
},
}Expand description
The result of asking a host whether it has a usable hardware trusted component.
Three-valued on purpose. See the module docs: Absent and Indeterminate
are different facts and must not be collapsed.
#[non_exhaustive]: a future probe may report a state these three do not
cover, and that must not be a breaking change.
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.
Available(HardwareKind)
Hardware of this class is present and reachable.
Absent
Definitively no usable hardware on this host.
Indeterminate
The probe itself failed — availability is unknown.
Implementations§
Source§impl HardwareProbe
impl HardwareProbe
Sourcepub fn indeterminate(detail: impl Display) -> Self
pub fn indeterminate(detail: impl Display) -> Self
Build an Indeterminate from any displayable
detail.
Trait Implementations§
Source§impl Clone for HardwareProbe
impl Clone for HardwareProbe
Source§fn clone(&self) -> HardwareProbe
fn clone(&self) -> HardwareProbe
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 HardwareProbe
impl Debug for HardwareProbe
impl Eq for HardwareProbe
Source§impl PartialEq for HardwareProbe
impl PartialEq for HardwareProbe
impl StructuralPartialEq for HardwareProbe
Auto Trait Implementations§
impl Freeze for HardwareProbe
impl RefUnwindSafe for HardwareProbe
impl Send for HardwareProbe
impl Sync for HardwareProbe
impl Unpin for HardwareProbe
impl UnsafeUnpin for HardwareProbe
impl UnwindSafe for HardwareProbe
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