[−][src]Struct rscam::Camera
Methods
impl Camera
[src]
pub fn new(device: &str) -> Result<Camera>
[src]
ⓘImportant traits for FormatIter<'a>pub fn formats(&self) -> FormatIter
[src]
ⓘImportant traits for FormatIter<'a>
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]
&self,
format: &[u8],
resolution: (u32, u32)
) -> Result<IntervalInfo>
Get detailed info about the available intervals.
ⓘImportant traits for ControlIter<'a>pub fn controls(&self) -> ControlIter
[src]
ⓘImportant traits for ControlIter<'a>
Get info about all controls.
ⓘImportant traits for ControlIter<'a>pub fn controls_by_class(&self, class: u32) -> ControlIter
[src]
ⓘImportant traits for ControlIter<'a>
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]
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]
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,