[−][src]Struct v4l::buffer::Metadata
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 driverts
- Timestamp as reported by the driverflags
- 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
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,