pub enum Rejection {
Show 14 variants
Unreadable,
NotAFile,
TooLarge,
BadHeader,
WrongFormat,
KeyMismatch,
UntrustedSigner,
BadSignature,
HashMismatch,
OtherSolver,
OtherPlatform,
OtherMode,
BadShape,
UnservableUnknown,
}Expand description
Why a shared entry was not used. Every rejection is a miss.
Variants§
Unreadable
The file could not be opened or read.
NotAFile
Not a regular file.
TooLarge
Larger than MAX_ENTRY_BYTES.
BadHeader
No header line, or not a valid header.
WrongFormat
Another format or format version.
KeyMismatch
The header names another key.
UntrustedSigner
The signer is not a trusted key.
BadSignature
The signature does not verify against the trusted key.
HashMismatch
The reply does not hash to the signed hash.
OtherSolver
Signed for another solver (name, version or binary).
OtherPlatform
Signed for this solver on another platform class. Cross-class hits are only for a named opt-in mode (ADR 0010), which does not exist.
OtherMode
Signed for a mode other than default.
BadShape
The reply does not have the shape its command requires.
UnservableUnknown
An unknown answer the serving policy would not serve (ADR 0009).
Implementations§
Trait Implementations§
impl Copy for Rejection
Source§impl<'de> Deserialize<'de> for Rejection
impl<'de> Deserialize<'de> for Rejection
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 Rejection
Source§impl Ord for Rejection
impl Ord for Rejection
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Rejection
impl PartialOrd for Rejection
impl StructuralPartialEq for Rejection
Auto Trait Implementations§
impl Forget for Rejection
impl Freeze for Rejection
impl Move for Rejection
impl RefUnwindSafe for Rejection
impl Send for Rejection
impl Sync for Rejection
impl Unpin for Rejection
impl UnsafeUnpin for Rejection
impl UnwindSafe for Rejection
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