#[repr(C)]pub struct BNDownloadInstanceCallbacks {
pub context: *mut c_void,
pub destroyInstance: Option<unsafe extern "C" fn(ctxt: *mut c_void)>,
pub performRequest: Option<unsafe extern "C" fn(ctxt: *mut c_void, url: *const c_char) -> c_int>,
pub performCustomRequest: Option<unsafe extern "C" fn(ctxt: *mut c_void, method: *const c_char, url: *const c_char, headerCount: u64, headerKeys: *const *const c_char, headerValues: *const *const c_char, response: *mut *mut BNDownloadInstanceResponse) -> c_int>,
pub freeResponse: Option<unsafe extern "C" fn(ctxt: *mut c_void, response: *mut BNDownloadInstanceResponse)>,
}
Fields§
§context: *mut c_void
§destroyInstance: Option<unsafe extern "C" fn(ctxt: *mut c_void)>
§performRequest: Option<unsafe extern "C" fn(ctxt: *mut c_void, url: *const c_char) -> c_int>
§performCustomRequest: Option<unsafe extern "C" fn(ctxt: *mut c_void, method: *const c_char, url: *const c_char, headerCount: u64, headerKeys: *const *const c_char, headerValues: *const *const c_char, response: *mut *mut BNDownloadInstanceResponse) -> c_int>
§freeResponse: Option<unsafe extern "C" fn(ctxt: *mut c_void, response: *mut BNDownloadInstanceResponse)>
Trait Implementations§
source§impl Clone for BNDownloadInstanceCallbacks
impl Clone for BNDownloadInstanceCallbacks
source§fn clone(&self) -> BNDownloadInstanceCallbacks
fn clone(&self) -> BNDownloadInstanceCallbacks
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 BNDownloadInstanceCallbacks
impl Debug for BNDownloadInstanceCallbacks
impl Copy for BNDownloadInstanceCallbacks
Auto Trait Implementations§
impl Freeze for BNDownloadInstanceCallbacks
impl RefUnwindSafe for BNDownloadInstanceCallbacks
impl !Send for BNDownloadInstanceCallbacks
impl !Sync for BNDownloadInstanceCallbacks
impl Unpin for BNDownloadInstanceCallbacks
impl UnwindSafe for BNDownloadInstanceCallbacks
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
)