#[repr(C)]pub struct BNDownloadInstanceOutputCallbacks {
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§
§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 BNDownloadInstanceOutputCallbacks
impl Clone for BNDownloadInstanceOutputCallbacks
source§fn clone(&self) -> BNDownloadInstanceOutputCallbacks
fn clone(&self) -> BNDownloadInstanceOutputCallbacks
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 BNDownloadInstanceOutputCallbacks
Auto Trait Implementations§
impl Freeze for BNDownloadInstanceOutputCallbacks
impl RefUnwindSafe for BNDownloadInstanceOutputCallbacks
impl !Send for BNDownloadInstanceOutputCallbacks
impl !Sync for BNDownloadInstanceOutputCallbacks
impl Unpin for BNDownloadInstanceOutputCallbacks
impl UnwindSafe for BNDownloadInstanceOutputCallbacks
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
)