pub enum TrustDeclError {
UnknownLevel(String),
}Expand description
Why a TRUST_ANNOTATION value could not be read (R894-F1).
Manual Display + Error impls in the same shape as
WritablePathsDeclError, so workload-spec keeps its no-thiserror lib
surface.
Variants§
UnknownLevel(String)
The value is neither TRUST_TRUSTED_VALUE nor
TRUST_UNTRUSTED_VALUE.
Refused rather than normalised to either side. Reading it as trusted
would let a typo (untrused) turn a microVM requirement off; reading it
as untrusted would refuse a fleet workload over a typo nobody can see.
Neither is a guess worth making about a security floor.
Trait Implementations§
Source§impl Clone for TrustDeclError
impl Clone for TrustDeclError
Source§fn clone(&self) -> TrustDeclError
fn clone(&self) -> TrustDeclError
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 TrustDeclError
impl Debug for TrustDeclError
Source§impl Display for TrustDeclError
impl Display for TrustDeclError
impl Eq for TrustDeclError
Source§impl Error for TrustDeclError
impl Error for TrustDeclError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TrustDeclError
impl PartialEq for TrustDeclError
impl StructuralPartialEq for TrustDeclError
Auto Trait Implementations§
impl Freeze for TrustDeclError
impl RefUnwindSafe for TrustDeclError
impl Send for TrustDeclError
impl Sync for TrustDeclError
impl Unpin for TrustDeclError
impl UnsafeUnpin for TrustDeclError
impl UnwindSafe for TrustDeclError
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.