#[repr(C)]pub struct BNDownloadInstanceInputOutputCallbacks {
pub readCallback: Option<unsafe extern "C" fn(data: *mut u8, len: u64, ctxt: *mut c_void) -> i64>,
pub readContext: *mut c_void,
pub writeCallback: Option<unsafe extern "C" fn(data: *mut u8, len: u64, ctxt: *mut c_void) -> u64>,
pub writeContext: *mut c_void,
pub progressCallback: Option<unsafe extern "C" fn(ctxt: *mut c_void, progress: u64, total: u64) -> bool>,
pub progressContext: *mut c_void,
}
Fields§
§readCallback: Option<unsafe extern "C" fn(data: *mut u8, len: u64, ctxt: *mut c_void) -> i64>
§readContext: *mut c_void
§writeCallback: Option<unsafe extern "C" fn(data: *mut u8, len: u64, ctxt: *mut c_void) -> u64>
§writeContext: *mut c_void
§progressCallback: Option<unsafe extern "C" fn(ctxt: *mut c_void, progress: u64, total: u64) -> bool>
§progressContext: *mut c_void
Trait Implementations§
source§impl Clone for BNDownloadInstanceInputOutputCallbacks
impl Clone for BNDownloadInstanceInputOutputCallbacks
source§fn clone(&self) -> BNDownloadInstanceInputOutputCallbacks
fn clone(&self) -> BNDownloadInstanceInputOutputCallbacks
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 BNDownloadInstanceInputOutputCallbacks
Auto Trait Implementations§
impl Freeze for BNDownloadInstanceInputOutputCallbacks
impl RefUnwindSafe for BNDownloadInstanceInputOutputCallbacks
impl !Send for BNDownloadInstanceInputOutputCallbacks
impl !Sync for BNDownloadInstanceInputOutputCallbacks
impl Unpin for BNDownloadInstanceInputOutputCallbacks
impl UnwindSafe for BNDownloadInstanceInputOutputCallbacks
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)