pub struct RefillMonitorView {
pub refill_check_volume_last_24h: bool,
pub refill_check_count_last_24h: bool,
pub refill_check_volume_last_hour: bool,
pub refill_check_count_last_hour: bool,
pub refill_check_interval_last_refill: bool,
}Expand description
Struct collects the information for the reporting to the monitor The information represents no execution error, but critical states of the control object. In this case, the monitor view informs about excessive triggering of refill operation which may be caused by a defective sensor or leakage of the main tank.
Fields§
§refill_check_volume_last_24h: boolrefill volume within the last 24h exceeded the threshold
refill_check_count_last_24h: boolrefill count within the last 24h exceeded the threshold
refill_check_volume_last_hour: boolrefill volume within the last hour exceeded the threshold
refill_check_count_last_hour: boolrefill count within the last hour exceeded the threshold
refill_check_interval_last_refill: booltime interval since the last refill is too short
Trait Implementations§
Source§impl Clone for RefillMonitorView
impl Clone for RefillMonitorView
Source§fn clone(&self) -> RefillMonitorView
fn clone(&self) -> RefillMonitorView
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RefillMonitorView
impl Debug for RefillMonitorView
Source§impl Display for RefillMonitorView
impl Display for RefillMonitorView
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the RefillMonitorView flags into a human-readable string.
This implementation provides a concise, single-line summary of any active refill warnings. If no flags are set, it reports that all checks are OK. Otherwise, it lists the specific warnings, separated by commas.
§Arguments
f- A mutable reference to aFormatterwhere the output will be written.
§Returns
An Ok(()) on successful formatting.
§Errors
Returns an Err containing a std::fmt::Error if an I/O error occurs
while writing to the formatter.