fn refresh_record(&mut self) {
        if let Ok(record) = self.read_record_uj() {
            self.record_buffer.push(record);
        }

        if !self.record_buffer.is_empty() {
            self.clean_old_records();
        }
    }
/// Generates a new record of the socket energy consumption and stores it in the record_buffer.
/// Returns a clone of this Record instance.
Generates a new record of the socket energy consumption and stores it in the record_buffer.
Returns a clone of this Record instance.
Generates a new record of the socket energy consumption and stores it in the record_buffer . Returns a clone of this Record instance .
fn refresh_record(&mut self) {
        if let Ok(record) = self.read_record_uj() {
            self.record_buffer.push(record);
        }
        if !self.record_buffer.is_empty() {
            self.clean_old_records();
        }
    }
fn refresh_record ( & mut self ) { if let Ok ( record ) = self . read_record_uj ( ) { self . record_buffer . push ( record ) ; } if ! self . record_buffer . is_empty ( ) { self . clean_old_records ( ) ; } }
Generates a new record of the socket energy consumption and stores it in the record_buffer.
Generates a new record of the socket energy consumption and stores it in the record_buffer .
&mut self
&mut self