#[repr(C)]pub struct LoggerApi {
pub add_logger: Option<unsafe extern "C" fn(logger: *const LoggerI)>,
pub remove_logger: Option<unsafe extern "C" fn(logger: *const LoggerI)>,
pub print: Option<unsafe extern "C" fn(log_type: LogType, msg: *const c_char)>,
pub printf: Option<unsafe extern "C" fn(log_type: LogType, format: *const c_char, ...) -> c_int>,
pub default_logger: *mut LoggerI,
}
Fields§
§add_logger: Option<unsafe extern "C" fn(logger: *const LoggerI)>
§remove_logger: Option<unsafe extern "C" fn(logger: *const LoggerI)>
§print: Option<unsafe extern "C" fn(log_type: LogType, msg: *const c_char)>
§printf: Option<unsafe extern "C" fn(log_type: LogType, format: *const c_char, ...) -> c_int>
§default_logger: *mut LoggerI
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoggerApi
impl RefUnwindSafe for LoggerApi
impl !Send for LoggerApi
impl !Sync for LoggerApi
impl Unpin for LoggerApi
impl UnwindSafe for LoggerApi
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