pub struct Logger<T> { /* private fields */ }
Expand description
Main Logger. Each logger has its own bridge where the messages are transferred.
Implementations§
Source§impl<T> Logger<T>
impl<T> Logger<T>
pub fn style(self, style: Box<dyn Style>) -> Self
pub fn bridge<U>(self, bridge: Box<dyn Bridge<U>>) -> Logger<U>
pub fn fail<M: AsRef<str>>(&self, msg: M) -> T
pub fn warn<M: AsRef<str>>(&self, msg: M) -> T
pub fn debug<M: AsRef<str>>(&self, msg: M) -> T
pub fn success<M: AsRef<str>>(&self, msg: M) -> T
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Logger<T>
impl<T> !RefUnwindSafe for Logger<T>
impl<T> !Send for Logger<T>
impl<T> !Sync for Logger<T>
impl<T> Unpin for Logger<T>
impl<T> !UnwindSafe for Logger<T>
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