#[repr(C)]pub struct Callbacks {
pub context: *mut c_void,
pub start_thread: unsafe extern "C" fn(context: *mut c_void, arg: *const c_void),
pub on_new_session: unsafe extern "C" fn(context: *mut c_void, session: *const Session),
pub on_requests: unsafe extern "C" fn(context: *mut c_void, session: *const Session, requests: *mut Request, request_count: usize),
pub log: unsafe extern "C" fn(context: *mut c_void, message: *const c_char, message_len: usize),
}
Fields§
§context: *mut c_void
§start_thread: unsafe extern "C" fn(context: *mut c_void, arg: *const c_void)
§on_new_session: unsafe extern "C" fn(context: *mut c_void, session: *const Session)
§on_requests: unsafe extern "C" fn(context: *mut c_void, session: *const Session, requests: *mut Request, request_count: usize)
§log: unsafe extern "C" fn(context: *mut c_void, message: *const c_char, message_len: usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Callbacks
impl RefUnwindSafe for Callbacks
impl Unpin for Callbacks
impl UnwindSafe for Callbacks
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