Trait TimeValueLike

Source
pub trait TimeValueLike {
    // Required methods
    fn from_time_value(tv: TimeValue) -> Self;
    fn to_time_value(self) -> TimeValue;
}
Expand description

A helper trait for converting from and to TimeValue.

Required Methods§

Source

fn from_time_value(tv: TimeValue) -> Self

Converts from TimeValue.

Source

fn to_time_value(self) -> TimeValue

Converts to TimeValue.

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.

Implementations on Foreign Types§

Source§

impl TimeValueLike for TimeValue

Source§

fn from_time_value(tv: TimeValue) -> Self

Source§

fn to_time_value(self) -> TimeValue

Source§

impl TimeValueLike for __kernel_old_timespec

Source§

fn from_time_value(tv: TimeValue) -> Self

Source§

fn to_time_value(self) -> TimeValue

Source§

impl TimeValueLike for __kernel_old_timeval

Source§

fn from_time_value(tv: TimeValue) -> Self

Source§

fn to_time_value(self) -> TimeValue

Source§

impl TimeValueLike for __kernel_sock_timeval

Source§

fn from_time_value(tv: TimeValue) -> Self

Source§

fn to_time_value(self) -> TimeValue

Source§

impl TimeValueLike for __kernel_timespec

Source§

fn from_time_value(tv: TimeValue) -> Self

Source§

fn to_time_value(self) -> TimeValue

Source§

impl TimeValueLike for timespec

Source§

fn from_time_value(tv: TimeValue) -> Self

Source§

fn to_time_value(self) -> TimeValue

Source§

impl TimeValueLike for timeval

Source§

fn from_time_value(tv: TimeValue) -> Self

Source§

fn to_time_value(self) -> TimeValue

Implementors§