pub enum ErrorKind {
Show 19 variants
Unknown {
code: u8,
},
InvalidCommand,
InvalidData,
InvalidSession,
AuthenticationFailed,
SessionsFull,
SessionFailed,
StorageFailed,
WrongLength,
InsufficientPermissions,
LogFull,
ObjectNotFound,
InvalidId,
InvalidOtp,
DemoMode,
CommandUnexecuted,
GenericError,
ObjectExists,
SshCaConstraintViolation,
}
Expand description
Kinds of errors which originate in the HSM
Variants§
Unknown
Unknown HSM error codes
InvalidCommand
Invalid command
InvalidData
Invalid data
InvalidSession
Invalid session
AuthenticationFailed
Authentication failure
SessionsFull
Sessions full (HSM has a max of 16)
SessionFailed
Session failed
StorageFailed
Storage failed
WrongLength
Wrong length
InsufficientPermissions
Insufficient permissions
LogFull
Audit log full
ObjectNotFound
Object not found
InvalidId
Invalid ID
InvalidOtp
Invalid OTP
DemoMode
Demo mode(?)
CommandUnexecuted
Command unexecuted
GenericError
Generic error
ObjectExists
Object already exists
SshCaConstraintViolation
SSH CA constraint violation
Implementations§
Trait Implementations§
source§impl Error for ErrorKind
impl Error for ErrorKind
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ErrorKind> for ErrorKind
impl PartialEq<ErrorKind> for ErrorKind
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralEq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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