v4l::io::traits

Trait 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<(&'a mut Self::Item, &'a mut Metadata), Error>;
}

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<(&'a mut Self::Item, &'a mut Metadata), Error>

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>