pub struct ApiLogger { /* private fields */ }Expand description
Global API logger
Implementations§
Source§impl ApiLogger
impl ApiLogger
pub fn new() -> Self
pub fn set_enabled(&mut self, enabled: bool)
pub fn set_min_level(&mut self, level: ApiLogLevel)
pub fn log(&self, entry: &ApiLogEntry)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiLogger
impl RefUnwindSafe for ApiLogger
impl Send for ApiLogger
impl Sync for ApiLogger
impl Unpin for ApiLogger
impl UnsafeUnpin for ApiLogger
impl UnwindSafe for ApiLogger
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