[][src]Struct v4l::buffers::mmap_stream::MappedBufferStream

pub struct MappedBufferStream<'a> { /* fields omitted */ }

Stream of mapped buffers

A manager instance is used internally for buffer handling.

Implementations

impl<'a> MappedBufferStream<'a>[src]

pub fn new(dev: &'a dyn Device) -> Result<Self>[src]

Returns a stream for frame capturing

Arguments

  • dev - Capture device ref to get its file descriptor

Example

use v4l::CaptureDevice;
use v4l::buffers::MappedBufferStream;

let dev = CaptureDevice::new(0);
if let Ok(dev) = dev {
    let stream = MappedBufferStream::new(&dev);
}

pub fn with_buffers(dev: &'a dyn Device, count: u32) -> Result<Self>[src]

Trait Implementations

impl<'a> BufferStream for MappedBufferStream<'a>[src]

type Buffer = MappedBuffer<'a>

impl<'a> Drop for MappedBufferStream<'a>[src]

impl<'a> Iterator for MappedBufferStream<'a>[src]

type Item = MappedBuffer<'a>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for MappedBufferStream<'a>

impl<'a> !Send for MappedBufferStream<'a>

impl<'a> !Sync for MappedBufferStream<'a>

impl<'a> Unpin for MappedBufferStream<'a>

impl<'a> !UnwindSafe for MappedBufferStream<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.