pub struct CapturingLogSink { /* private fields */ }Expand description
Test-only HostLogSink that captures every emitted message in a
Mutex<Vec<String>>. Tests inspect the captured messages to verify
log bounds, content, and deduplication without touching stderr.
Implementations§
Source§impl CapturingLogSink
impl CapturingLogSink
Trait Implementations§
Source§impl Debug for CapturingLogSink
impl Debug for CapturingLogSink
Source§impl Default for CapturingLogSink
impl Default for CapturingLogSink
Source§fn default() -> CapturingLogSink
fn default() -> CapturingLogSink
Returns the “default value” for a type. Read more
Source§impl HostLogSink for CapturingLogSink
impl HostLogSink for CapturingLogSink
Auto Trait Implementations§
impl !Freeze for CapturingLogSink
impl RefUnwindSafe for CapturingLogSink
impl Send for CapturingLogSink
impl Sync for CapturingLogSink
impl Unpin for CapturingLogSink
impl UnsafeUnpin for CapturingLogSink
impl UnwindSafe for CapturingLogSink
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