Struct re_log::ChannelLogger
source · pub struct ChannelLogger {
filter: LevelFilter,
tx: Mutex<Sender<LogMsg>>,
}
Expand description
Pipe log messages to a channel.
Fields§
§filter: LevelFilter
§tx: Mutex<Sender<LogMsg>>
Implementations§
source§impl ChannelLogger
impl ChannelLogger
pub fn new(filter: LevelFilter) -> (Self, Receiver<LogMsg>)
Trait Implementations§
source§impl Log for ChannelLogger
impl Log for ChannelLogger
Auto Trait Implementations§
impl !Freeze for ChannelLogger
impl !RefUnwindSafe for ChannelLogger
impl Send for ChannelLogger
impl Sync for ChannelLogger
impl Unpin for ChannelLogger
impl UnwindSafe for ChannelLogger
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