Trait Time

Source
pub trait Time {
    // Required method
    fn to_writer<W: Write>(&self, writer: &mut W) -> Result<()>;
}
Expand description

Trait for time type implementations.

Implementors should write:

  1. signed 4 bytes of the following data length, value is required to be 8
  2. signed 8 bytes of the date, expressed as a microseconds amount starting from the 00:00:00.

Required Methods§

Source

fn to_writer<W: Write>(&self, writer: &mut W) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Time for T
where T: Timelike,