Enum ctaphid_types::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
InvalidCommand
The command in the request is invalid.
InvalidParameter
The parameter(s) in the request is invalid.
InvalidLength
The length field (BCNT) is invalid for the request.
InvalidSequence
The sequence does not match expected value.
MessageTimeout
The message has timed out.
ChannelBusy
The device is busy for the requesting channel.
LockRequired
Command requires channel lock.
InvalidChannel
CID is not valid.
Other
Unspecified error.
Unknown(u8)
Tuple Fields
0: u8
Unknown error code.
Trait Implementations
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