pub fn write(&mut self, record: &Record) -> InfluxResult<()>
    {
        if let Err(e) = self.write_backlog() {
            self.backlog.write_pending(&record)?; Err(e)
        }
        else
        {
            let result = self.write_record(&record);

            if result.is_err() {
                self.backlog.write_pending(&record)?;
            }

            result
        }
    }
/// Submit a [Record](struct.Record.html) to be written to InfluxDB. Or backlogged if you set a backlogger.
Submit a [Record](struct.Record.html) to be written to InfluxDB. Or backlogged if you set a backlogger.
Submit a [ Record ] ( struct . Record . html ) to be written to InfluxDB . Or backlogged if you set a backlogger .
pub fn write(&mut self, record: &Record) -> InfluxResult<()>
    {
        if let Err(e) = self.write_backlog() {
            self.backlog.write_pending(&record)?; Err(e)
        }
        else
        {
            let result = self.write_record(&record);
            if result.is_err() {
                self.backlog.write_pending(&record)?;
            }
            result
        }
    }
pub fn write ( & mut self , record : & Record ) -> InfluxResult < ( ) > { if let Err ( e ) = self . write_backlog ( ) { self . backlog . write_pending ( & record ) ? ; Err ( e ) } else { let result = self . write_record ( & record ) ; if result . is_err ( ) { self . backlog . write_pending ( & record ) ? ; } result } }
Submit a [Record](struct.Record.html) to be written to InfluxDB.
Submit a [ Record ] ( struct . Record . html ) to be written to InfluxDB .
&mut self
record
&Record
&mut self
record
&Record