#[repr(C)]pub struct sc_remote_data {
pub data: *mut sc_remote_apdu,
pub length: c_int,
pub alloc: Option<unsafe extern "C" fn(rdata: *mut sc_remote_data, out: *mut *mut sc_remote_apdu) -> c_int>,
pub free: Option<unsafe extern "C" fn(rdata: *mut sc_remote_data)>,
}
Expand description
@struct sc_remote_data Frame for the list of the @c sc_remote_apdu data with the handlers to allocate and free.
Fields§
§data: *mut sc_remote_apdu
§length: c_int
§alloc: Option<unsafe extern "C" fn(rdata: *mut sc_remote_data, out: *mut *mut sc_remote_apdu) -> c_int>
Handler to allocate a new @c sc_remote_apdu data and add it to the list. @param rdata Self pointer to the @c sc_remote_data @param out Pointer to newle allocated member
free: Option<unsafe extern "C" fn(rdata: *mut sc_remote_data)>
Handler to free the list of @c sc_remote_apdu data @param rdata Self pointer to the @c sc_remote_data
Trait Implementations§
Source§impl Clone for sc_remote_data
impl Clone for sc_remote_data
Source§fn clone(&self) -> sc_remote_data
fn clone(&self) -> sc_remote_data
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 sc_remote_data
impl Debug for sc_remote_data
impl Copy for sc_remote_data
Auto Trait Implementations§
impl Freeze for sc_remote_data
impl RefUnwindSafe for sc_remote_data
impl !Send for sc_remote_data
impl !Sync for sc_remote_data
impl Unpin for sc_remote_data
impl UnwindSafe for sc_remote_data
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