pub fn write_point(&mut self, pt: &Point) -> TelegrafResult {
        if pt.fields.is_empty() {
            return Err(
                TelegrafError::BadProtocol("points must have at least 1 field".to_owned())
            );
        }

        let lp = pt.to_lp();
        let bytes = lp.to_str().as_bytes();
        self.write_to_conn(bytes)
    }
/// Writes the protocol representation of a point
/// to the established connection.
Writes the protocol representation of a point
to the established connection.
Writes the protocol representation of a point to the established connection .
pub fn write_point(&mut self, pt: &Point) -> TelegrafResult {
        if pt.fields.is_empty() {
            return Err(
                TelegrafError::BadProtocol("points must have at least 1 field".to_owned())
            );
        }
        let lp = pt.to_lp();
        let bytes = lp.to_str().as_bytes();
        self.write_to_conn(bytes)
    }
pub fn write_point ( & mut self , pt : & Point ) -> TelegrafResult { if pt . fields . is_empty ( ) { return Err ( TelegrafError :: BadProtocol ( " " . to_owned ( ) ) ) ; } let lp = pt . to_lp ( ) ; let bytes = lp . to_str ( ) . as_bytes ( ) ; self . write_to_conn ( bytes ) }
Writes the protocol representation of a point
to the established connection.
Writes the protocol representation of a point to the established connection .
&mut self
pt
&Point