pub struct Collector {
pub summary: Summary,
pub events: Vec<(String, Outcome, u128)>,
}Expand description
Collects outcomes in memory. Used by the bindings, which return a result object rather than streaming to a console.
Fields§
§summary: Summary§events: Vec<(String, Outcome, u128)>Trait Implementations§
Source§impl Progress for Collector
impl Progress for Collector
Source§fn device_finished(&mut self, e: &DeviceEvent<'_>)
fn device_finished(&mut self, e: &DeviceEvent<'_>)
Called after each device, successful or not.
Source§fn run_started(&mut self, _total: usize, _url: &str)
fn run_started(&mut self, _total: usize, _url: &str)
Called once, before any device is touched.
Source§fn device_started(&mut self, _index: usize, _total: usize, _device: &Device)
fn device_started(&mut self, _index: usize, _total: usize, _device: &Device)
Called before each device, with a 1-based index.
Source§fn run_finished(&mut self, _summary: Summary, _elapsed: Duration)
fn run_finished(&mut self, _summary: Summary, _elapsed: Duration)
Called once, after every device.
Auto Trait Implementations§
impl Freeze for Collector
impl RefUnwindSafe for Collector
impl Send for Collector
impl Sync for Collector
impl Unpin for Collector
impl UnsafeUnpin for Collector
impl UnwindSafe for Collector
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