pub struct LogMsgs { /* private fields */ }Implementations§
Source§impl LogMsgs
impl LogMsgs
pub fn new(level: LogLevel) -> Self
pub fn new_with_prefix(prefix: &str, level: LogLevel) -> Self
pub fn update_level(self, new_level: LogLevel) -> Self
pub fn log(self, msg: LogMsg) -> Self
pub fn count(&self) -> usize
pub fn msgs(&self, formatter: &LogMsgFormatter) -> String
pub fn use_msgs(&self) -> &Vec<LogMsg>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LogMsgs
impl !Send for LogMsgs
impl !Sync for LogMsgs
impl !UnwindSafe for LogMsgs
impl Freeze for LogMsgs
impl Unpin for LogMsgs
impl UnsafeUnpin for LogMsgs
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