pub struct LoggingObserver { /* private fields */ }Expand description
日志观察者(记录所有事件到日志)
用于调试和监控连接事件
Implementations§
Trait Implementations§
Source§impl ConnectionObserver for LoggingObserver
impl ConnectionObserver for LoggingObserver
Source§fn on_event(&self, event: &ConnectionEvent)
fn on_event(&self, event: &ConnectionEvent)
当连接上发生事件时由
Connection 调用 Read moreAuto Trait Implementations§
impl Freeze for LoggingObserver
impl RefUnwindSafe for LoggingObserver
impl Send for LoggingObserver
impl Sync for LoggingObserver
impl Unpin for LoggingObserver
impl UnsafeUnpin for LoggingObserver
impl UnwindSafe for LoggingObserver
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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