Trait linux_video_core::IsTimestamp
source · pub trait IsTimestamp {
// Required methods
fn from_time_val(time_val: TimeVal) -> Self;
fn from_time_spec(time_spec: TimeSpec) -> Self;
fn into_time_val(self) -> TimeVal;
fn into_time_spec(self) -> TimeSpec;
}
Expand description
Something which can be used as timestamp
Required Methods§
sourcefn from_time_val(time_val: TimeVal) -> Self
fn from_time_val(time_val: TimeVal) -> Self
Convert from time val
sourcefn from_time_spec(time_spec: TimeSpec) -> Self
fn from_time_spec(time_spec: TimeSpec) -> Self
Convert from time spec
sourcefn into_time_val(self) -> TimeVal
fn into_time_val(self) -> TimeVal
Convert into time val
sourcefn into_time_spec(self) -> TimeSpec
fn into_time_spec(self) -> TimeSpec
Convert into time spec