pub struct CollectingSink { /* private fields */ }Expand description
A sink that collects all emitted events into a Vec. Useful in integration
tests that need to assert on the sequence of events.
Implementations§
Source§impl CollectingSink
impl CollectingSink
pub fn new() -> Self
Sourcepub fn drain(&self) -> Vec<ProofEvent>
pub fn drain(&self) -> Vec<ProofEvent>
Drain and return all collected events.
Sourcepub fn snapshot(&self) -> Vec<ProofEvent>
pub fn snapshot(&self) -> Vec<ProofEvent>
Return a snapshot of collected events (clone).
Trait Implementations§
Source§impl Clone for CollectingSink
impl Clone for CollectingSink
Source§fn clone(&self) -> CollectingSink
fn clone(&self) -> CollectingSink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CollectingSink
impl Default for CollectingSink
Source§impl ProofEventSink for CollectingSink
impl ProofEventSink for CollectingSink
Auto Trait Implementations§
impl Freeze for CollectingSink
impl RefUnwindSafe for CollectingSink
impl Send for CollectingSink
impl Sync for CollectingSink
impl Unpin for CollectingSink
impl UnsafeUnpin for CollectingSink
impl UnwindSafe for CollectingSink
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