pub enum SeatFileError {
Unreadable {
reason: String,
},
VersionUnknown {
found: VersionFound,
},
KeyUnreadable {
reason: &'static str,
},
}Expand description
Why a seat file or its key could not be read or written. No variant carries key material.
Variants§
Unreadable
The file is not the JSON of a seat file.
VersionUnknown
The file carries a version this reader does not speak, or none.
Fields
§
found: VersionFoundThe version the file carries, or that it carries none.
KeyUnreadable
The private key is not a PKCS#8 PEM of an Ed25519 seed.
Trait Implementations§
Source§impl Debug for SeatFileError
impl Debug for SeatFileError
Source§impl Display for SeatFileError
impl Display for SeatFileError
impl Eq for SeatFileError
Source§impl Error for SeatFileError
impl Error for SeatFileError
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 SeatFileError
impl PartialEq for SeatFileError
impl StructuralPartialEq for SeatFileError
Auto Trait Implementations§
impl Freeze for SeatFileError
impl RefUnwindSafe for SeatFileError
impl Send for SeatFileError
impl Sync for SeatFileError
impl Unpin for SeatFileError
impl UnsafeUnpin for SeatFileError
impl UnwindSafe for SeatFileError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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