pub struct CaptureBuilder { /* private fields */ }Expand description
Values for CaptureBuilder.
Implementations§
Source§impl CaptureBuilder
impl CaptureBuilder
Sourcepub fn profile(self, profile: CaptureProfile) -> Self
pub fn profile(self, profile: CaptureProfile) -> Self
Performs the profile operation.
Sourcepub fn resolution(self, width: u32, height: u32) -> Self
pub fn resolution(self, width: u32, height: u32) -> Self
Performs the resolution operation.
Sourcepub fn frame_rate(self, frame_rate: FrameRate) -> Self
pub fn frame_rate(self, frame_rate: FrameRate) -> Self
Performs the frame_rate operation.
Sourcepub fn request(self, request: CaptureRequest) -> Self
pub fn request(self, request: CaptureRequest) -> Self
Performs the request operation.
Sourcepub async fn start(self) -> CameraResult<Capture>
pub async fn start(self) -> CameraResult<Capture>
Performs the start operation.
Trait Implementations§
Source§impl Clone for CaptureBuilder
impl Clone for CaptureBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for CaptureBuilder
impl !UnwindSafe for CaptureBuilder
impl Forget for CaptureBuilder
impl Freeze for CaptureBuilder
impl Send for CaptureBuilder
impl Sync for CaptureBuilder
impl Unpin for CaptureBuilder
impl UnsafeUnpin for CaptureBuilder
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