pub struct Logger { /* private fields */ }Implementations§
Source§impl Logger
impl Logger
pub fn new(limit: usize, verbosity: Verbosity) -> Self
pub fn log<T: Into<String>>(&mut self, level: NotificationLevel, message: T)
pub fn clear(&mut self)
pub fn get_notification_level(&self) -> NotificationLevel
pub fn len(&self) -> usize
pub fn iter( &self, ) -> impl DoubleEndedIterator<Item = &LogLine> + ExactSizeIterator
pub fn is_empty(&self) -> bool
pub fn reset_notification_level(&mut self)
pub fn change_limit(&mut self, limit: usize)
pub fn change_verbosity(&mut self, verbosity: Verbosity)
pub fn merge(&mut self, other: &Self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more