[−][src]Struct opensc_sys::sc_thread_context_t
@struct sc_thread_context_t Structure for the locking function to use when using libopensc in a multi-threaded application.
Fields
ver: c_uint
the version number of this structure (0 for this version)
create_mutex: Option<unsafe extern "C" fn(arg1: *mut *mut c_void) -> c_int>
creates a mutex object
lock_mutex: Option<unsafe extern "C" fn(arg1: *mut c_void) -> c_int>
locks a mutex object (blocks until the lock has been acquired)
unlock_mutex: Option<unsafe extern "C" fn(arg1: *mut c_void) -> c_int>
unlocks a mutex object
destroy_mutex: Option<unsafe extern "C" fn(arg1: *mut c_void) -> c_int>
destroys a mutex object
thread_id: Option<unsafe extern "C" fn() -> c_ulong>
returns unique identifier for the thread (can be NULL)
Trait Implementations
impl Clone for sc_thread_context_t
[src]
fn clone(&self) -> sc_thread_context_t
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for sc_thread_context_t
[src]
impl Debug for sc_thread_context_t
[src]
Auto Trait Implementations
impl RefUnwindSafe for sc_thread_context_t
impl Send for sc_thread_context_t
impl Sync for sc_thread_context_t
impl Unpin for sc_thread_context_t
impl UnwindSafe for sc_thread_context_t
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,