#[repr(C)]pub struct LogCallbacks {
pub message: extern "C" fn(operator_id: u64, level: u32, message: *const u8, message_len: usize),
}Expand description
Logging callbacks
Fields§
§message: extern "C" fn(operator_id: u64, level: u32, message: *const u8, message_len: usize)Log a message
§Parameters
operator_id: Operator ID for identifying the logging operatorlevel: Log level (0=trace, 1=debug, 2=info, 3=warn, 4=error)message: Message bytesmessage_len: Length of message in bytes
Trait Implementations§
Source§impl Clone for LogCallbacks
impl Clone for LogCallbacks
Source§fn clone(&self) -> LogCallbacks
fn clone(&self) -> LogCallbacks
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 LogCallbacks
Auto Trait Implementations§
impl Freeze for LogCallbacks
impl RefUnwindSafe for LogCallbacks
impl Send for LogCallbacks
impl Sync for LogCallbacks
impl Unpin for LogCallbacks
impl UnsafeUnpin for LogCallbacks
impl UnwindSafe for LogCallbacks
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