[][src]Struct v4l::timestamp::Timestamp

pub struct Timestamp {
    pub sec: i64,
    pub usec: i64,

Timestamp consisting of a seconds and a microseconds component


sec: i64usec: i64


impl Timestamp[src]

pub fn new(sec: i64, usec: i64) -> Self[src]

Returns a timestamp representation


  • sec - Seconds
  • usec - Microseconds


use v4l::timestamp::Timestamp;
let ts = Timestamp::new(5, 5);

Trait Implementations

impl Clone for Timestamp[src]

impl Copy for Timestamp[src]

impl Debug for Timestamp[src]

impl Default for Timestamp[src]

impl Display for Timestamp[src]

impl From<Duration> for Timestamp[src]

impl From<Timestamp> for Duration[src]

impl From<timeval> for Timestamp[src]

impl Into<timeval> for Timestamp[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.