pub struct Logger<W: Write + Send> { /* private fields */ }Expand description
Represents a logging object that writes to a specified output. It can be used simultaneously from multiple threads; it guarantees to serialize writes.
Use LoggerBuilder to construct a Logger, or use Logger::default().
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<W> !Freeze for Logger<W>
impl<W> RefUnwindSafe for Logger<W>
impl<W> Send for Logger<W>
impl<W> Sync for Logger<W>
impl<W> Unpin for Logger<W>where
W: Unpin,
impl<W> UnsafeUnpin for Logger<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for Logger<W>
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