v4l::io::traits

Trait Stream

Source
pub trait Stream {
    type Item: ?Sized;

    // Required methods
    fn start(&mut self) -> Result<(), StartError>;
    fn stop(&mut self) -> Result<()>;
}
Expand description

Streaming I/O

Required Associated Types§

Required Methods§

Source

fn start(&mut self) -> Result<(), StartError>

Start streaming, takes exclusive ownership of a device

Source

fn stop(&mut self) -> Result<()>

Stop streaming, frees all buffers

Implementors§

Source§

impl Stream for v4l::io::dmabuf::stream::Stream

Source§

type Item = DmaBuf

Source§

impl Stream for StreamIo

Source§

impl Stream for v4l::io::userptr::stream::Stream

Source§

type Item = [u8]

Source§

impl<'a> Stream for v4l::io::mmap::stream::Stream<'a>

Source§

type Item = [u8]