Enum ethers::signers::yubihsm::device::ErrorKind [−][src]
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
Fields
code: u8
Unknown error code
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
Create an error context from this error
Create an Error
from the given response::Code
(if applicable)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more