[][src]Struct v4l::buffer::Metadata

pub struct Metadata {
    pub seq: u32,
    pub timestamp: Timestamp,
    pub flags: Flags,
}

Buffer metadata, mostly used not to convolute the main buffer structs

Fields

seq: u32

Sequence number, counting the frames

timestamp: Timestamp

Time of capture (usually set by the driver)

flags: Flags

Buffer flags

Implementations

impl Metadata[src]

pub fn new(seq: u32, ts: Timestamp, flags: Flags) -> Self[src]

Returns a buffer metadata description

Arguments

  • seq - Sequence number as counted by the driver
  • ts - Timestamp as reported by the driver
  • flags - Flags as set by the driver

Example

use v4l::{buffer, Timestamp};

let ts = Timestamp::new(0 /* sec */, 0 /* usec */);
let flags = buffer::Flags::from(0);
let meta = buffer::Metadata::new(0, ts, flags);

Trait Implementations

impl Clone for Metadata[src]

impl Copy for Metadata[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, 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.