#[repr(C)]pub struct sm_card_operations {
pub open: Option<unsafe extern "C" fn(card: *mut sc_card) -> c_int>,
pub get_sm_apdu: Option<unsafe extern "C" fn(card: *mut sc_card, apdu: *mut sc_apdu, sm_apdu: *mut *mut sc_apdu) -> c_int>,
pub free_sm_apdu: Option<unsafe extern "C" fn(card: *mut sc_card, apdu: *mut sc_apdu, sm_apdu: *mut *mut sc_apdu) -> c_int>,
pub close: Option<unsafe extern "C" fn(card: *mut sc_card) -> c_int>,
pub read_binary: Option<unsafe extern "C" fn(card: *mut sc_card, idx: c_uint, buf: *mut c_uchar, count: size_t) -> c_int>,
pub update_binary: Option<unsafe extern "C" fn(card: *mut sc_card, idx: c_uint, buf: *const c_uchar, count: size_t) -> c_int>,
}Fields§
§open: Option<unsafe extern "C" fn(card: *mut sc_card) -> c_int>§get_sm_apdu: Option<unsafe extern "C" fn(card: *mut sc_card, apdu: *mut sc_apdu, sm_apdu: *mut *mut sc_apdu) -> c_int>§free_sm_apdu: Option<unsafe extern "C" fn(card: *mut sc_card, apdu: *mut sc_apdu, sm_apdu: *mut *mut sc_apdu) -> c_int>§close: Option<unsafe extern "C" fn(card: *mut sc_card) -> c_int>§read_binary: Option<unsafe extern "C" fn(card: *mut sc_card, idx: c_uint, buf: *mut c_uchar, count: size_t) -> c_int>§update_binary: Option<unsafe extern "C" fn(card: *mut sc_card, idx: c_uint, buf: *const c_uchar, count: size_t) -> c_int>Trait Implementations§
Source§impl Clone for sm_card_operations
impl Clone for sm_card_operations
Source§fn clone(&self) -> sm_card_operations
fn clone(&self) -> sm_card_operations
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for sm_card_operations
impl Debug for sm_card_operations
impl Copy for sm_card_operations
Auto Trait Implementations§
impl Freeze for sm_card_operations
impl RefUnwindSafe for sm_card_operations
impl Send for sm_card_operations
impl Sync for sm_card_operations
impl Unpin for sm_card_operations
impl UnwindSafe for sm_card_operations
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