pub struct ConsoleSink {
pub pending: Mutex<Vec<(LogLevel, String)>>,
}Expand description
A sink that can receive log records from the log crate.
Callers hold a reference and push into the DevConsole.
Fields§
§pending: Mutex<Vec<(LogLevel, String)>>Lines captured from log macros, drained periodically into DevConsole.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ConsoleSink
impl RefUnwindSafe for ConsoleSink
impl Send for ConsoleSink
impl Sync for ConsoleSink
impl Unpin for ConsoleSink
impl UnsafeUnpin for ConsoleSink
impl UnwindSafe for ConsoleSink
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