pub enum LogEvent {
Log(LogLine),
Flush,
Sync(Sender<Result<()>>),
Close,
}Expand description
Represents a type of log event.
Variants§
Log(LogLine)
A log line event.
Flush
A command to flush all logger buffers.
Sync(Sender<Result<()>>)
A command to flush and sync file logs to disk, then acknowledge completion.
Close
A command to close the logger.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogEvent
impl RefUnwindSafe for LogEvent
impl Send for LogEvent
impl Sync for LogEvent
impl Unpin for LogEvent
impl UnsafeUnpin for LogEvent
impl UnwindSafe for LogEvent
Blanket Implementations§
impl<T> Allocation for T
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