pub enum CcidError {
Transfer(PipeError),
NoInterface,
NoPipe,
CommandFailedWith {
status: u8,
error: u8,
},
InvalidResponse,
MessageTooLong,
}Expand description
CCID host error.
Variants§
Transfer(PipeError)
A USB transfer failed.
NoInterface
No usable CCID interface was found.
NoPipe
The controller could not allocate a bulk pipe.
CommandFailedWith
The reader rejected the command, carrying its bStatus and bError bytes.
Fields
InvalidResponse
The reader returned a malformed or mismatched response.
MessageTooLong
An APDU or response exceeds the driver’s fixed transfer buffer.
Trait Implementations§
Source§impl Error for CcidError
impl Error for CcidError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for CcidError
impl RefUnwindSafe for CcidError
impl Send for CcidError
impl Sync for CcidError
impl Unpin for CcidError
impl UnsafeUnpin for CcidError
impl UnwindSafe for CcidError
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