pub struct Capture { /* private fields */ }Expand description
In-memory sink that captures every record routed to it.
Cheap to clone — internally it’s an Arc<Mutex<Vec<Log>>>, so
every clone observes the same buffer.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Capture
impl !RefUnwindSafe for Capture
impl Send for Capture
impl Sync for Capture
impl Unpin for Capture
impl UnsafeUnpin for Capture
impl !UnwindSafe for Capture
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