pub struct SingleFileWriter { /* private fields */ }Expand description
A LogWriter that accepts an open File
Implementations§
Trait Implementations§
Source§impl LogWriter for SingleFileWriter
impl LogWriter for SingleFileWriter
Source§fn write(&self, now: &mut DeferredNow, record: &Record<'_>) -> Result<()>
fn write(&self, now: &mut DeferredNow, record: &Record<'_>) -> Result<()>
Writes out a log line. Read more
Source§fn format(&mut self, format: FormatFunction)
fn format(&mut self, format: FormatFunction)
Sets the format function. Read more
Source§fn max_log_level(&self) -> LevelFilter
fn max_log_level(&self) -> LevelFilter
Provides the maximum log level that is to be written.
Auto Trait Implementations§
impl !Freeze for SingleFileWriter
impl RefUnwindSafe for SingleFileWriter
impl Send for SingleFileWriter
impl Sync for SingleFileWriter
impl Unpin for SingleFileWriter
impl UnwindSafe for SingleFileWriter
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