pub struct RunRecorder(/* private fields */);Expand description
Retains the run’s result values and its delivery decision.
Implementations§
Source§impl RunRecorder
impl RunRecorder
Sourcepub fn summary_only() -> Self
pub fn summary_only() -> Self
Retains the summary and the delivery decision and drops each event, so a run whose events nobody reads back costs memory for one value.
pub fn record(&self, value: Value)
pub fn retains_events(&self) -> bool
pub fn set_delivery(&self, delivery: Delivery)
pub fn records(&self) -> Vec<Value>
pub fn delivery(&self) -> Delivery
Trait Implementations§
Source§impl Clone for RunRecorder
impl Clone for RunRecorder
Source§fn clone(&self) -> RunRecorder
fn clone(&self) -> RunRecorder
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 Debug for RunRecorder
impl Debug for RunRecorder
Auto Trait Implementations§
impl !RefUnwindSafe for RunRecorder
impl !Send for RunRecorder
impl !Sync for RunRecorder
impl !UnwindSafe for RunRecorder
impl Freeze for RunRecorder
impl Unpin for RunRecorder
impl UnsafeUnpin for RunRecorder
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