#[repr(C)]pub struct sm_context {
pub config_section: [c_char; 64],
pub sm_mode: c_uint,
pub sm_flags: c_uint,
pub info: sm_info,
pub ops: sm_card_operations,
pub module: sm_module,
pub app_lock: Option<unsafe extern "C" fn() -> c_ulong>,
pub app_unlock: Option<unsafe extern "C" fn()>,
}Fields§
§config_section: [c_char; 64]§sm_mode: c_uint§sm_flags: c_uint§info: sm_info§ops: sm_card_operations§module: sm_module§app_lock: Option<unsafe extern "C" fn() -> c_ulong>§app_unlock: Option<unsafe extern "C" fn()>Trait Implementations§
Source§impl Clone for sm_context
impl Clone for sm_context
Source§fn clone(&self) -> sm_context
fn clone(&self) -> sm_context
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 moreimpl Copy for sm_context
Auto Trait Implementations§
impl Freeze for sm_context
impl RefUnwindSafe for sm_context
impl !Send for sm_context
impl !Sync for sm_context
impl Unpin for sm_context
impl UnwindSafe for sm_context
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