#[non_exhaustive]pub enum Seal {
Guaranteed,
BestEffort,
}Expand description
How strongly a machine’s offline seal holds. internet: false is enforced for every machine,
but a privileged container can lift it from inside its own network namespace, so such a machine
must declare seal: best-effort to acknowledge the seal is advisory for it (it is refused
otherwise). Defaults to guaranteed.
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.
Guaranteed
The seal holds: nothing in the machine can lift it (the default).
BestEffort
The machine can lift the seal from inside (a privileged container): it is applied but not guaranteed.
Implementations§
Trait Implementations§
impl Copy for Seal
Source§impl<'de> Deserialize<'de> for Seal
impl<'de> Deserialize<'de> for Seal
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 Seal
Source§impl JsonSchema for Seal
impl JsonSchema for Seal
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Seal
Auto Trait Implementations§
impl Freeze for Seal
impl RefUnwindSafe for Seal
impl Send for Seal
impl Sync for Seal
impl Unpin for Seal
impl UnsafeUnpin for Seal
impl UnwindSafe for Seal
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.