pub enum Problem {
Unreadable,
BadHeader,
WrongVersion,
KeyMismatch,
HashMismatch,
BadShape,
Directory,
Stray,
StaleTemp,
}Expand description
Why an entry file is not a valid entry.
Variants§
Unreadable
The file cannot be read.
BadHeader
There is no header line, or it is not valid JSON for a header.
WrongVersion
The header has another entry format version.
KeyMismatch
The header names a different key from the file name.
HashMismatch
The reply does not hash to the header’s reply_sha256.
BadShape
The reply does not have the shape its command requires.
Directory
A directory where an entry file should be.
Stray
A file whose name is not a key, or a directory that is not a key prefix.
StaleTemp
A temporary file older than STALE_TEMP: left by an interrupted
write.
Implementations§
Trait Implementations§
impl Copy for Problem
Source§impl<'de> Deserialize<'de> for Problem
impl<'de> Deserialize<'de> for Problem
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 Problem
Source§impl Ord for Problem
impl Ord for Problem
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 Problem
impl PartialOrd for Problem
impl StructuralPartialEq for Problem
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin for Problem
impl UnwindSafe for Problem
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