pub enum KeyError {
Io(Error),
Json(Error),
Crypto(String),
NotFound(KeyId),
EmptyKeyId,
NoDefaultKey,
InsecureKeyPerms {
path: PathBuf,
mode: u32,
},
}Expand description
Errors from keystore operations.
Variants§
Io(Error)
Json(Error)
Crypto(String)
NotFound(KeyId)
EmptyKeyId
NoDefaultKey
InsecureKeyPerms
Private key file has insecure permissions (group- or world-readable).
Carries the path and the observed octal mode so the caller can show
an actionable error. Set TREESHIP_ALLOW_INSECURE_KEY_PERMS=1 to
bypass during testing or controlled environments.
Trait Implementations§
Source§impl Error for KeyError
impl Error for KeyError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for KeyError
impl !UnwindSafe for KeyError
impl Freeze for KeyError
impl Send for KeyError
impl Sync for KeyError
impl Unpin for KeyError
impl UnsafeUnpin for KeyError
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