Skip to main content

LineProtocolTimestamp

Trait LineProtocolTimestamp 

Source
pub trait LineProtocolTimestamp {
    // Required method
    fn write_value_with_space(&self, buffer: &mut String);
}
Expand description

Defines a type that can be written as a line protocol timestamp.

Required Methods§

Source

fn write_value_with_space(&self, buffer: &mut String)

Writes the value pair with a leading space.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LineProtocolTimestamp for SystemTime

Source§

fn write_value_with_space(&self, buffer: &mut String)

Source§

impl<Tz> LineProtocolTimestamp for DateTime<Tz>
where Tz: TimeZone,

Available on crate feature chrono only.
Source§

fn write_value_with_space(&self, buffer: &mut String)

Implementors§