pub struct ExchangeOptions {
pub max_command_bytes: usize,
pub max_response_bytes: usize,
pub allow_extended: bool,
}Expand description
Caller-reported limits for a raw transport exchange. Defaults to short APDUs: 261 command bytes and 258 response bytes.
Fields§
§max_command_bytes: usizeMaximum complete command size, including header and Lc/Le.
max_response_bytes: usizeMaximum complete response size, including SW1/SW2.
allow_extended: boolPermit extended encoding when the logical command also permits it. This does not discover or guarantee card support.
Trait Implementations§
Source§impl Clone for ExchangeOptions
impl Clone for ExchangeOptions
Source§fn clone(&self) -> ExchangeOptions
fn clone(&self) -> ExchangeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExchangeOptions
Source§impl Debug for ExchangeOptions
impl Debug for ExchangeOptions
Auto Trait Implementations§
impl Freeze for ExchangeOptions
impl RefUnwindSafe for ExchangeOptions
impl Send for ExchangeOptions
impl Sync for ExchangeOptions
impl Unpin for ExchangeOptions
impl UnsafeUnpin for ExchangeOptions
impl UnwindSafe for ExchangeOptions
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