pub struct Device { /* private fields */ }
Expand description
Video device
Implementations§
Source§impl Device
impl Device
Sourcepub async fn capabilities(&self) -> Result<Capability>
pub async fn capabilities(&self) -> Result<Capability>
Get capabilities
Sourcepub fn control_items(&self, control: &Control) -> Option<MenuItems<'_>>
pub fn control_items(&self, control: &Control) -> Option<MenuItems<'_>>
Get control menu items
Sourcepub fn formats(&self, type_: BufferType) -> FmtDescs<'_>
pub fn formats(&self, type_: BufferType) -> FmtDescs<'_>
Get supported formats
Sourcepub async fn format(&self, type_: BufferType) -> Result<Format>
pub async fn format(&self, type_: BufferType) -> Result<Format>
Get current format
Sourcepub async fn get_format(&self, fmt: &mut Format) -> Result<()>
pub async fn get_format(&self, fmt: &mut Format) -> Result<()>
Get current format
Sourcepub async fn set_format(&self, fmt: &mut Format) -> Result<()>
pub async fn set_format(&self, fmt: &mut Format) -> Result<()>
Set current format
Sourcepub async fn try_format(&self, fmt: &mut Format) -> Result<()>
pub async fn try_format(&self, fmt: &mut Format) -> Result<()>
Try format without set it
Sourcepub fn intervals(
&self,
pixel_format: FourCc,
width: u32,
height: u32,
) -> FrmIvals<'_>
pub fn intervals( &self, pixel_format: FourCc, width: u32, height: u32, ) -> FrmIvals<'_>
Get supported frame intervals
Sourcepub async fn param(&self, type_: BufferType) -> Result<StreamParm>
pub async fn param(&self, type_: BufferType) -> Result<StreamParm>
Get stream parameters
Sourcepub async fn get_param(&self, param: &mut StreamParm) -> Result<()>
pub async fn get_param(&self, param: &mut StreamParm) -> Result<()>
Get stream parameters
Sourcepub async fn set_param(&self, param: &mut StreamParm) -> Result<()>
pub async fn set_param(&self, param: &mut StreamParm) -> Result<()>
Set stream parameters
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations§
Source§impl<T> AsRawFilelike for Twhere
T: AsRawFd,
impl<T> AsRawFilelike for Twhere
T: AsRawFd,
Source§fn as_raw_filelike(&self) -> i32
fn as_raw_filelike(&self) -> i32
Returns the raw value.
Source§impl<T> AsRawSocketlike for Twhere
T: AsRawFd,
impl<T> AsRawSocketlike for Twhere
T: AsRawFd,
Source§fn as_raw_socketlike(&self) -> i32
fn as_raw_socketlike(&self) -> i32
Returns the raw value.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more