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§fn clone(&self) -> MemoryErrorReporter
fn clone(&self) -> MemoryErrorReporter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryErrorReporter
impl Debug for MemoryErrorReporter
Source§impl Default for MemoryErrorReporter
impl Default for MemoryErrorReporter
Source§fn default() -> MemoryErrorReporter
fn default() -> MemoryErrorReporter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryErrorReporter
impl RefUnwindSafe for MemoryErrorReporter
impl Send for MemoryErrorReporter
impl Sync for MemoryErrorReporter
impl Unpin 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