pub enum HumanIdentityError {
NotEnrolled {
path: PathBuf,
},
Unreadable {
path: PathBuf,
source: Error,
},
Invalid {
path: PathBuf,
detail: String,
},
}Expand description
Why the human’s public identity could not be read.
NotEnrolled and Unreadable are separate on purpose (#1010): a sandbox
deny must never look like “no human yet”, or a caller that enrolls on
absence would mint a second key over a perfectly good one.
Variants§
Trait Implementations§
Source§impl Debug for HumanIdentityError
impl Debug for HumanIdentityError
Source§impl Display for HumanIdentityError
impl Display for HumanIdentityError
Source§impl Error for HumanIdentityError
impl Error for HumanIdentityError
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 HumanIdentityError
impl !UnwindSafe for HumanIdentityError
impl Forget for HumanIdentityError
impl Freeze for HumanIdentityError
impl Move for HumanIdentityError
impl Send for HumanIdentityError
impl Sync for HumanIdentityError
impl Unpin for HumanIdentityError
impl UnsafeUnpin for HumanIdentityError
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