Trait v4l::io::traits::Stream

source ·
pub trait Stream {
    type Item: ?Sized;

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

Streaming I/O

Required Associated Types§

Required Methods§

source

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

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§

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]