Trait Stats

Source
pub trait Stats:
    Display
    + ToCSV
    + 'static { }
Expand description

A trait implemented by the statistics of a pool

The types implementing Stats must be displayable in the terminal and must be convertible to CSV fields. However, note that at the moment some pools choose to produce empty CSV values for their statistics. Consequently, their statistics will not be available in the fuzz/stats/<id>/events.csv file written by fuzzcheck at the end of a fuzz test.

Some pools may choose not to display their statistics in the terminal.

Trait Implementations§

Source§

impl ToCSV for Box<dyn Stats>

Source§

fn csv_headers(&self) -> Vec<CSVField>

The headers of the CSV file
Source§

fn to_csv_record(&self) -> Vec<CSVField>

Serializes self as a list of CSVField. Each element in the vector must correspond to a header given by self.csv_headers()
Source§

impl Stats for Box<dyn Stats>

Implementations on Foreign Types§

Source§

impl Stats for Box<dyn Stats>

Implementors§