pub enum StreamRole {
Raw,
StillCapture,
VideoRecording,
ViewFinder,
}Expand description
Stream role hint for generating configuration.
Used in Camera::generate_configuration().
Variants§
Trait Implementations§
Source§impl Clone for StreamRole
impl Clone for StreamRole
Source§fn clone(&self) -> StreamRole
fn clone(&self) -> StreamRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StreamRole
Source§impl Debug for StreamRole
impl Debug for StreamRole
Source§impl From<StreamRole> for Type
impl From<StreamRole> for Type
Source§fn from(role: StreamRole) -> Self
fn from(role: StreamRole) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StreamRole
impl RefUnwindSafe for StreamRole
impl Send for StreamRole
impl Sync for StreamRole
impl Unpin for StreamRole
impl UnsafeUnpin for StreamRole
impl UnwindSafe for StreamRole
Blanket Implementations§
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