pub enum TrustStoreError {
Io {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
source: Error,
},
Serialize(Error),
InvalidPin {
name: String,
source: VerifyError,
},
UnsupportedAlgorithm {
name: String,
algo: String,
},
DuplicateName(String),
NoSuchPin(String),
}Expand description
Errors arising from trust-store operations.
Variants§
Io
I/O failure reading or writing the store file.
Parse
The store file existed but did not parse as JSON.
Serialize(Error)
Serialising the store before write failed.
InvalidPin
A pin’s pubkey field was not a valid base64url Ed25519 key.
UnsupportedAlgorithm
The pin algorithm was not one this version understands.
DuplicateName(String)
Attempted to add a pin whose name already exists.
NoSuchPin(String)
Attempted to remove a pin that does not exist.
Trait Implementations§
Source§impl Debug for TrustStoreError
impl Debug for TrustStoreError
Source§impl Display for TrustStoreError
impl Display for TrustStoreError
Source§impl Error for TrustStoreError
impl Error for TrustStoreError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for TrustStoreError
impl !UnwindSafe for TrustStoreError
impl Freeze for TrustStoreError
impl Send for TrustStoreError
impl Sync for TrustStoreError
impl Unpin for TrustStoreError
impl UnsafeUnpin for TrustStoreError
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