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

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

Timestamp consisting of a seconds and a microseconds component

Fields

sec: i64usec: i64

Implementations

impl Timestamp[src]

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

Returns a timestamp representation

Arguments

  • sec - Seconds
  • usec - Microseconds

Example

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.