pub enum IdentityError {
NotFound,
Exists(String),
Denied(String),
Io(Error),
InvalidKey(String),
Multibase(Error),
}Variants§
NotFound
Exists(String)
Refused to overwrite a key that is already there. save is
write-if-absent by contract: a private key has no .prev and no
rotation attestation behind it, so clobbering one is unrecoverable.
Callers that legitimately replace a key (mur agent rekey) write to a
scratch directory and rename.
Denied(String)
The key is there but this process may not read it — a sandbox deny, or
wrong ownership. Distinct from NotFound on purpose: callers that treat
an absent key as “not signed yet” must NOT treat an unreadable one the
same way, or a deny silently downgrades signing to unsigned.
Io(Error)
InvalidKey(String)
Multibase(Error)
Trait Implementations§
Source§impl Debug for IdentityError
impl Debug for IdentityError
Source§impl Display for IdentityError
impl Display for IdentityError
Source§impl Error for IdentityError
impl Error for IdentityError
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 From<Error> for IdentityError
impl From<Error> for IdentityError
Source§impl From<Error> for IdentityError
impl From<Error> for IdentityError
Source§impl From<IdentityError> for EnvelopeError
impl From<IdentityError> for EnvelopeError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for IdentityError
impl !UnwindSafe for IdentityError
impl Freeze for IdentityError
impl Send for IdentityError
impl Sync for IdentityError
impl Unpin for IdentityError
impl UnsafeUnpin for IdentityError
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