[][src]Struct rscam::Camera

pub struct Camera { /* fields omitted */ }

Methods

impl Camera[src]

pub fn new(device: &str) -> Result<Camera>[src]

Important traits for FormatIter<'a>
pub fn formats(&self) -> FormatIter[src]

Get detailed info about the available formats.

pub fn resolutions(&self, format: &[u8]) -> Result<ResolutionInfo>[src]

Get detailed info about the available resolutions.

pub fn intervals(
    &self,
    format: &[u8],
    resolution: (u32, u32)
) -> Result<IntervalInfo>
[src]

Get detailed info about the available intervals.

Important traits for ControlIter<'a>
pub fn controls(&self) -> ControlIter[src]

Get info about all controls.

Important traits for ControlIter<'a>
pub fn controls_by_class(&self, class: u32) -> ControlIter[src]

Get info about available controls by class (see CLASS_* constants).

pub fn get_control(&self, id: u32) -> Result<Control>[src]

Get info about the control by id.

pub fn set_control<T: Settable>(&self, id: u32, value: &T) -> Result<()>[src]

Set value of the control.

pub fn start(&mut self, config: &Config) -> Result<()>[src]

Start streaming.

Panics

If recalled or called after stop().

pub fn capture(&self) -> Result<Frame>[src]

Blocking request of frame. It dequeues buffer from a driver, which will be enqueueed after destructing Frame.

Panics

If called w/o streaming.

pub fn stop(&mut self) -> Result<()>[src]

Stop streaming. Otherwise it's called after destructing Camera.

Panics

If called w/o streaming.

Trait Implementations

impl Drop for Camera[src]

Auto Trait Implementations

impl Send for Camera

impl Sync for Camera

Blanket Implementations

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

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

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.

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

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

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