[][src]Struct opensc_sys::sm_module_operations

#[repr(C)]pub struct sm_module_operations {
    pub initialize: Option<unsafe extern "C" fn(ctx: *mut sc_context, info: *mut sm_info, out: *mut sc_remote_data) -> c_int>,
    pub get_apdus: Option<unsafe extern "C" fn(ctx: *mut sc_context, sm_info: *mut sm_info, init_data: *mut c_uchar, init_len: size_t, out: *mut sc_remote_data) -> c_int>,
    pub finalize: Option<unsafe extern "C" fn(ctx: *mut sc_context, info: *mut sm_info, rdata: *mut sc_remote_data, out: *mut c_uchar, out_len: size_t) -> c_int>,
    pub module_init: Option<unsafe extern "C" fn(ctx: *mut sc_context, data: *const c_char) -> c_int>,
    pub module_cleanup: Option<unsafe extern "C" fn(ctx: *mut sc_context) -> c_int>,
    pub test: Option<unsafe extern "C" fn(ctx: *mut sc_context, info: *mut sm_info, out: *mut c_char) -> c_int>,
}

Fields

initialize: Option<unsafe extern "C" fn(ctx: *mut sc_context, info: *mut sm_info, out: *mut sc_remote_data) -> c_int>get_apdus: Option<unsafe extern "C" fn(ctx: *mut sc_context, sm_info: *mut sm_info, init_data: *mut c_uchar, init_len: size_t, out: *mut sc_remote_data) -> c_int>finalize: Option<unsafe extern "C" fn(ctx: *mut sc_context, info: *mut sm_info, rdata: *mut sc_remote_data, out: *mut c_uchar, out_len: size_t) -> c_int>module_init: Option<unsafe extern "C" fn(ctx: *mut sc_context, data: *const c_char) -> c_int>module_cleanup: Option<unsafe extern "C" fn(ctx: *mut sc_context) -> c_int>test: Option<unsafe extern "C" fn(ctx: *mut sc_context, info: *mut sm_info, out: *mut c_char) -> c_int>

Trait Implementations

impl Clone for sm_module_operations[src]

impl Copy for sm_module_operations[src]

impl Debug for sm_module_operations[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.