pub trait LineProtocolField {
// Required methods
fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool;
fn write_key_value_with_comma(&self, buffer: &mut String, key: &str);
}Expand description
Defines a type that can be written as a line protocol field.
Required Methods§
Sourcefn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool
fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool
Writes the key-value pair with a leading space.
Sourcefn write_key_value_with_comma(&self, buffer: &mut String, key: &str)
fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)
Writes the key-value pair with a leading comma.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".