pub struct Monitor {
    terminate_proc: Arc<AtomicBool>,
    proc_thread: Option<JoinHandle<()>>,
    new_data: Arc<AtomicBool>,
    monitor_samples: Arc<Mutex<[MinMaxMonitorSamples; 6]>>,
    monitor_samples_copy: [MinMaxMonitorSamples; 6],
}
Expand description

The actual frontend API for the MonitorProcessor. We start an extra thread for handling monitored signals from the MonitorBackend, because we can’t guarantee that the UI thread is actually started or working. Also because we want to be independent of whether a UI is started at all.

Just call Monitor::get_minmax_monitor_samples and you will always get the most current data.

Fields

terminate_proc: Arc<AtomicBool>proc_thread: Option<JoinHandle<()>>new_data: Arc<AtomicBool>monitor_samples: Arc<Mutex<[MinMaxMonitorSamples; 6]>>monitor_samples_copy: [MinMaxMonitorSamples; 6]

Implementations

Trait Implementations

Executes the destructor for this type. Read more

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.