pub struct ReadStream { /* private fields */ }
Expand description

A stream that reads data from a V4L2 device.

Implementations

Dequeues a buffer, passes it to cb, then enqueues it again.

If cb returns an error, this function will still try to enqueue the buffer again. If that fails, the error that occurred during enqueuing will be returned, if it succeeds, the error returned by cb will be returned.

Trait Implementations

Extracts the raw file descriptor. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.