Struct openpgp_card::CardCaps
source · [−]pub struct CardCaps { /* private fields */ }
Expand description
Information about the capabilities of a card.
CardCaps is used to signal capabilities (chaining, extended length support, max command/response sizes, max PIN lengths) of the current card to backends.
CardCaps is not intended for users of this library.
(The information is gathered from the “Card Capabilities”, “Extended length information” and “PWStatus” DOs)
Implementations
sourceimpl CardCaps
impl CardCaps
pub fn ext_support(&self) -> bool
pub fn max_rsp_bytes(&self) -> u16
pub fn pw1_max_len(&self) -> u8
pub fn pw3_max_len(&self) -> u8
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CardCaps
impl Send for CardCaps
impl Sync for CardCaps
impl Unpin for CardCaps
impl UnwindSafe for CardCaps
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more