#[non_exhaustive]pub enum AssuranceLevel {
Restricted,
ManagedTree,
}Expand description
Strength of the portable execution guarantee requested from a backend.
Consumers must include a wildcard arm so future assurance levels remain additive:
ⓘ
use tapid_runner::AssuranceLevel;
fn label(level: AssuranceLevel) -> &'static str {
match level {
AssuranceLevel::Restricted => "restricted",
AssuranceLevel::ManagedTree => "managed-tree",
}
}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.
Restricted
Restrict ambient authority for the launched process and its descendants.
ManagedTree
Also own the complete process tree and its cleanup boundary.
Trait Implementations§
Source§impl Clone for AssuranceLevel
impl Clone for AssuranceLevel
impl Copy for AssuranceLevel
Source§impl Debug for AssuranceLevel
impl Debug for AssuranceLevel
Source§impl<'de> Deserialize<'de> for AssuranceLevel
impl<'de> Deserialize<'de> for AssuranceLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AssuranceLevel
Source§impl PartialEq for AssuranceLevel
impl PartialEq for AssuranceLevel
impl StructuralPartialEq for AssuranceLevel
Auto Trait Implementations§
impl Forget for AssuranceLevel
impl Freeze for AssuranceLevel
impl Move for AssuranceLevel
impl RefUnwindSafe for AssuranceLevel
impl Send for AssuranceLevel
impl Sync for AssuranceLevel
impl Unpin for AssuranceLevel
impl UnsafeUnpin for AssuranceLevel
impl UnwindSafe for AssuranceLevel
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