Enum ctaphid::error::ResponseError [−][src]
pub enum ResponseError {
NotEnoughData,
MissingErrorCode,
UnexpectedChannel {
expected: u32,
actual: u32,
},
UnexpectedCommand {
expected: Command,
actual: Command,
},
UnexpectedPacketType,
UnexpectedSequence {
expected: u8,
actual: u8,
},
}
Expand description
An error that occured while receiving a response from a CTAPHID device.
Variants
The device did not return enough data for a CTAPHID packet.
The device returned an error packet without an error code.
The device returned a response packet with an unexpected channel ID.
The device returned a response packet with an unexpected command ID.
Fields of UnexpectedCommand
The device returned a packet of an unexpected type.
The device returned a response packet with an unexpected sequence number.
Fields of UnexpectedSequence
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 ResponseError
impl Send for ResponseError
impl Sync for ResponseError
impl Unpin for ResponseError
impl UnwindSafe for ResponseError
Blanket Implementations
Mutably borrows from an owned value. Read more