Trait v4l::io::traits::OutputStream

source ·
pub trait OutputStream<'a>: Stream {
    // Required methods
    fn queue(&mut self, index: usize) -> Result<()>;
    fn dequeue(&mut self) -> Result<usize>;
    fn next(&'a mut self) -> Result<(&mut Self::Item, &mut Metadata)>;
}

Required Methods§

source

fn queue(&mut self, index: usize) -> Result<()>

Insert a buffer into the drivers’ incoming queue

source

fn dequeue(&mut self) -> Result<usize>

Remove a buffer from the drivers’ outgoing queue

source

fn next(&'a mut self) -> Result<(&mut Self::Item, &mut Metadata)>

Dump a new frame by first queueing and then dequeueing. First time initialization is performed if necessary.

Implementors§

source§

impl<'a, 'b> OutputStream<'b> for Stream<'a>