Enum ctaphid::error::DeviceError [−][src]
pub enum DeviceError {
InvalidCommand,
InvalidParameter,
InvalidLength,
InvalidSequence,
MessageTimeout,
ChannelBusy,
LockRequired,
InvalidChannel,
Other,
Unknown(u8),
}
Expand description
Error code returned by the device for a failed CTAPHID transaction.
Variants
The command in the request is invalid.
The parameter(s) in the request is invalid.
The length field (BCNT) is invalid for the request.
The sequence does not match expected value.
The message has timed out.
The device is busy for the requesting channel.
Command requires channel lock.
CID is not valid.
Unspecified error.
Unknown(u8)
Unknown error code.
Tuple Fields of Unknown
0: u8
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for DeviceError
impl Send for DeviceError
impl Sync for DeviceError
impl Unpin for DeviceError
impl UnwindSafe for DeviceError
Blanket Implementations
Mutably borrows from an owned value. Read more