pub struct CanonicalLog { /* private fields */ }Implementations§
Source§impl CanonicalLog
impl CanonicalLog
pub fn new() -> Self
pub fn set( &mut self, key: impl Into<String>, value: impl Serialize, ) -> &mut Self
pub fn set_level(&mut self, level: LogLevel) -> &mut Self
pub fn inc(&mut self, key: &str, amount: i64) -> &mut Self
pub fn duration_ms(&self) -> f64
pub fn suppress(&mut self)
pub fn emit(self)
Trait Implementations§
Source§impl Default for CanonicalLog
impl Default for CanonicalLog
Auto Trait Implementations§
impl Freeze for CanonicalLog
impl RefUnwindSafe for CanonicalLog
impl Send for CanonicalLog
impl Sync for CanonicalLog
impl Unpin for CanonicalLog
impl UnwindSafe for CanonicalLog
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