pub struct MonitorProcessor {
    rb_mon_con: Consumer<MonitorBufPtr>,
    rb_recycle_prod: Producer<MonitorBufPtr>,
    new_data: bool,
    procs: Vec<MonitorMinMax>,
}
Expand description

Coordinates the processing of incoming MonitorBufs.

Fields

rb_mon_con: Consumer<MonitorBufPtr>rb_recycle_prod: Producer<MonitorBufPtr>new_data: boolprocs: Vec<MonitorMinMax>

Implementations

Helper function for tests, to access the current state of the min/max buffers.

Internal helper function for process.

Processes all queued MonitorBuf instances and sends then back to the MonitorBackend thread after used for recycling.

Returns true, when a new data point was received. Resets the internal flag until the next time new data is received.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.