pub enum Policy {
Disabled,
Permissive,
Required,
}Expand description
How strictly a node enforces admission.
See the module docs for why Policy::Permissive is the default and why
the nested-sandbox exception is unconditional.
Variants§
Disabled
No admission checking at all — pre-R555-F4 behaviour. An escape hatch for a node debugging its own signing setup; it also disables the nested-sandbox exception, which is why it is not the default.
Permissive
A grant, if present, must verify. A workload with no grant runs, unless it requests the nested-sandbox widening.
Required
Every workload must carry a grant that verifies.
Implementations§
Trait Implementations§
impl Copy for Policy
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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> 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.