#[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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BNDownloadInstanceCallbacks
Source§impl Debug for BNDownloadInstanceCallbacks
impl Debug for BNDownloadInstanceCallbacks
Auto Trait Implementations§
impl !Send for BNDownloadInstanceCallbacks
impl !Sync for BNDownloadInstanceCallbacks
impl Freeze for BNDownloadInstanceCallbacks
impl RefUnwindSafe for BNDownloadInstanceCallbacks
impl Unpin for BNDownloadInstanceCallbacks
impl UnsafeUnpin 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