#[non_exhaustive]pub enum Detection {
Detected,
NotDetected,
Unknown,
}Expand description
Result of a single TEE capability probe.
Unknown is distinct from NotDetected on purpose. On platforms where we
cannot run the probe (for example asking about Intel SGX from an aarch64
host) we report Unknown rather than claim absence — callers that care
about the distinction can degrade gracefully.
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.
Detected
The capability is present and a fetcher backed by it would succeed.
NotDetected
The probe ran and found no support.
Unknown
The probe is not implemented on this platform, or its signal is inaccessible from userspace.
Implementations§
Trait Implementations§
impl Copy for Detection
impl Eq for Detection
impl StructuralPartialEq for Detection
Auto Trait Implementations§
impl Freeze for Detection
impl RefUnwindSafe for Detection
impl Send for Detection
impl Sync for Detection
impl Unpin for Detection
impl UnsafeUnpin for Detection
impl UnwindSafe for Detection
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