#[repr(C)]pub struct PrismLogHandler {
pub fn_: PrismLogCallback,
pub userdata: *mut c_void,
}Expand description
A structure pairing a log callback with an opaque user pointer.
Fields§
§fn_: PrismLogCallbackThe callback invoked to deliver messages, or NULL to install no handler. When fn is NULL, messages are discarded.
userdata: *mut c_voidAn opaque pointer passed unmodified to fn on each invocation. Prism does not interpret or take ownership of this value. The lifetime of this value is the lifetime of the handler function, and therefore this value must be valid for as long as the handler is alive.
Trait Implementations§
Source§impl Clone for PrismLogHandler
impl Clone for PrismLogHandler
Source§fn clone(&self) -> PrismLogHandler
fn clone(&self) -> PrismLogHandler
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 PrismLogHandler
Auto Trait Implementations§
impl !Send for PrismLogHandler
impl !Sync for PrismLogHandler
impl Freeze for PrismLogHandler
impl RefUnwindSafe for PrismLogHandler
impl Unpin for PrismLogHandler
impl UnsafeUnpin for PrismLogHandler
impl UnwindSafe for PrismLogHandler
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