pub struct MockLoggingPlugin { /* private fields */ }Expand description
Mock logger: collects all events in a MockLogSink so tests
can inspect the events afterwards.
Implementations§
Source§impl MockLoggingPlugin
impl MockLoggingPlugin
Sourcepub fn new(sink: MockLogSink) -> Self
pub fn new(sink: MockLogSink) -> Self
Constructor.
Trait Implementations§
Source§impl LoggingPlugin for MockLoggingPlugin
Available on crate feature std only.
impl LoggingPlugin for MockLoggingPlugin
Available on crate feature
std only.Auto Trait Implementations§
impl Freeze for MockLoggingPlugin
impl RefUnwindSafe for MockLoggingPlugin
impl Send for MockLoggingPlugin
impl Sync for MockLoggingPlugin
impl Unpin for MockLoggingPlugin
impl UnsafeUnpin for MockLoggingPlugin
impl UnwindSafe for MockLoggingPlugin
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