pub struct MonitorBackend {
    rb_mon_prod: Producer<MonitorBufPtr>,
    rb_recycle_con: Consumer<MonitorBufPtr>,
    unused_monitor_buffers: Vec<MonitorBufPtr>,
}

Fields

rb_mon_prod: Producer<MonitorBufPtr>rb_recycle_con: Consumer<MonitorBufPtr>unused_monitor_buffers: Vec<MonitorBufPtr>

Holds enough monitor buffers to hold about 1-2 seconds of data. The MonitorBuf boxes are written in the backend and then sent via MonitorBackend::rb_mon_prod to the frontend. The frontend then sends the used MonitorBufPtr back via quick_update_con.

Implementations

Checks if there are any used monitor buffers to be collected.

Hands out an unused MonitorBuf for filling and sending to the MonitorProcessor thread.

A helper function for writing tests. Returns the number of MonitorBuf we can hand out until there are none anymore.

Sends a MonitorBuf to the MonitorProcessor.

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.