#[repr(C)]pub struct BNLogListener {
pub context: *mut c_void,
pub log: Option<unsafe extern "C" fn(ctxt: *mut c_void, sessionId: usize, level: BNLogLevel, msg: *const c_char, logger_name: *const c_char, tid: usize)>,
pub close: Option<unsafe extern "C" fn(ctxt: *mut c_void)>,
pub getLogLevel: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> BNLogLevel>,
}
Expand description
Callbacks
Fields§
§context: *mut c_void
§log: Option<unsafe extern "C" fn(ctxt: *mut c_void, sessionId: usize, level: BNLogLevel, msg: *const c_char, logger_name: *const c_char, tid: usize)>
§close: Option<unsafe extern "C" fn(ctxt: *mut c_void)>
§getLogLevel: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> BNLogLevel>
Trait Implementations§
source§impl Clone for BNLogListener
impl Clone for BNLogListener
source§fn clone(&self) -> BNLogListener
fn clone(&self) -> BNLogListener
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 BNLogListener
impl Debug for BNLogListener
source§impl Default for BNLogListener
impl Default for BNLogListener
impl Copy for BNLogListener
Auto Trait Implementations§
impl Freeze for BNLogListener
impl RefUnwindSafe for BNLogListener
impl !Send for BNLogListener
impl !Sync for BNLogListener
impl Unpin for BNLogListener
impl UnwindSafe for BNLogListener
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
)