#[repr(C)]pub struct tm_logger_api {
pub add_logger: Option<unsafe extern "C" fn(logger: *const tm_logger_i)>,
pub remove_logger: Option<unsafe extern "C" fn(logger: *const tm_logger_i)>,
pub print: Option<unsafe extern "C" fn(log_type: tm_log_type, msg: *const c_char)>,
pub printf: Option<unsafe extern "C" fn(log_type: tm_log_type, format: *const c_char, ...) -> c_int>,
pub default_logger: *mut tm_logger_i,
}Fields§
§add_logger: Option<unsafe extern "C" fn(logger: *const tm_logger_i)>§remove_logger: Option<unsafe extern "C" fn(logger: *const tm_logger_i)>§print: Option<unsafe extern "C" fn(log_type: tm_log_type, msg: *const c_char)>§printf: Option<unsafe extern "C" fn(log_type: tm_log_type, format: *const c_char, ...) -> c_int>§default_logger: *mut tm_logger_iTrait Implementations§
Source§impl Clone for tm_logger_api
impl Clone for tm_logger_api
Source§fn clone(&self) -> tm_logger_api
fn clone(&self) -> tm_logger_api
Returns a duplicate 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 moreimpl Copy for tm_logger_api
Auto Trait Implementations§
impl Freeze for tm_logger_api
impl RefUnwindSafe for tm_logger_api
impl !Send for tm_logger_api
impl !Sync for tm_logger_api
impl Unpin for tm_logger_api
impl UnwindSafe for tm_logger_api
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