v4l2r 0.0.7

Safe and flexible abstraction over V4L2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Represents the possible directions (`OUTPUT` or `CAPTURE`) of a queue.

use std::fmt::Debug;

/// Represents the direction of a `Queue` (`Capture` or `Output`). The direction
/// of a queue limits the operations that are possible on it.
pub trait Direction: Debug + Send + 'static {}
/// Type for `OUTPUT` queues.
#[derive(Debug)]
pub struct Output;
impl Direction for Output {}
/// Type for `CAPTURE` queues.
#[derive(Debug)]
pub struct Capture;
impl Direction for Capture {}