pub struct MemoryErrorReporter { /* private fields */ }Expand description
Simple ErrorReporter that stores error messages in memory.
This helper is designed for tests and examples that need to assert on the
errors emitted by a component without wiring an external monitoring system.
Callers can retrieve captured messages via MemoryErrorReporter::take.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryErrorReporter
impl Clone for MemoryErrorReporter
Source§impl Debug for MemoryErrorReporter
impl Debug for MemoryErrorReporter
Source§impl Default for MemoryErrorReporter
impl Default for MemoryErrorReporter
Auto Trait Implementations§
impl Freeze for MemoryErrorReporter
impl RefUnwindSafe for MemoryErrorReporter
impl Send for MemoryErrorReporter
impl Sync for MemoryErrorReporter
impl Unpin for MemoryErrorReporter
impl UnsafeUnpin for MemoryErrorReporter
impl UnwindSafe for MemoryErrorReporter
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