pub enum Apdu {
ConfirmedRequest(ConfirmedRequest),
UnconfirmedRequest(UnconfirmedRequest),
SimpleAck(SimpleAck),
ComplexAck(ComplexAck),
SegmentAck(SegmentAck),
Error(ErrorPdu),
Reject(RejectPdu),
Abort(AbortPdu),
}Expand description
Sum type for all APDU PDU types.
Variants§
ConfirmedRequest(ConfirmedRequest)
Confirmed service request.
UnconfirmedRequest(UnconfirmedRequest)
Unconfirmed service request.
SimpleAck(SimpleAck)
Acknowledgment carrying no result data.
ComplexAck(ComplexAck)
Acknowledgment carrying result data, possibly segmented.
SegmentAck(SegmentAck)
Flow-control acknowledgment of received segments.
Error(ErrorPdu)
Service failure reported with an error class and code.
Reject(RejectPdu)
Request refused before execution.
Abort(AbortPdu)
Transaction terminated early.
Implementations§
Source§impl Apdu
impl Apdu
Sourcepub const fn remote_error(&self) -> Option<RemoteError>
pub const fn remote_error(&self) -> Option<RemoteError>
How the peer turned the request down, for an Error, Reject or Abort
PDU; None for every other PDU type.
A convenience for code holding an Apdu of unknown type; the stack’s
own dispatch has already matched the PDU type and calls the
per-PDU remote_error() instead.
Trait Implementations§
impl Eq for Apdu
impl StructuralPartialEq for Apdu
Auto Trait Implementations§
impl !Freeze for Apdu
impl RefUnwindSafe for Apdu
impl Send for Apdu
impl Sync for Apdu
impl Unpin for Apdu
impl UnsafeUnpin for Apdu
impl UnwindSafe for Apdu
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