Enum libcamera::stream::StreamRole
source · 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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.
source§impl TryFrom<u32> for StreamRole
impl TryFrom<u32> for StreamRole
impl Copy for StreamRole
Auto Trait Implementations§
impl Freeze for StreamRole
impl RefUnwindSafe for StreamRole
impl Send for StreamRole
impl Sync for StreamRole
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)