pub struct CaptureRequestBuilder(/* private fields */);Expand description
Values for CaptureRequestBuilder.
Implementations§
Source§impl CaptureRequestBuilder
impl CaptureRequestBuilder
Sourcepub fn preferred_resolution(self, width: u32, height: u32) -> Self
pub fn preferred_resolution(self, width: u32, height: u32) -> Self
Performs the preferred_resolution operation.
Sourcepub fn exact_resolution(self, width: u32, height: u32) -> Self
pub fn exact_resolution(self, width: u32, height: u32) -> Self
Performs the exact_resolution operation.
Sourcepub fn require_aspect_ratio(self, width: u32, height: u32) -> Self
pub fn require_aspect_ratio(self, width: u32, height: u32) -> Self
Require an exact display aspect ratio while still allowing the device to negotiate a different resolution with that ratio.
Sourcepub fn preferred_frame_rate(self, rate: FrameRate) -> Self
pub fn preferred_frame_rate(self, rate: FrameRate) -> Self
Performs the preferred_frame_rate operation.
Sourcepub fn minimum_frame_rate(self, rate: FrameRate) -> Self
pub fn minimum_frame_rate(self, rate: FrameRate) -> Self
Performs the minimum_frame_rate operation.
Sourcepub fn preferred_formats(
self,
formats: impl IntoIterator<Item = CaptureFormat>,
) -> Self
pub fn preferred_formats( self, formats: impl IntoIterator<Item = CaptureFormat>, ) -> Self
Performs the preferred_formats operation.
Sourcepub fn priority(self, priority: NegotiationPriority) -> Self
pub fn priority(self, priority: NegotiationPriority) -> Self
Performs the priority operation.
Sourcepub fn memory_budget(self, budget: MemoryBudget) -> Self
pub fn memory_budget(self, budget: MemoryBudget) -> Self
Performs the memory_budget operation.
Sourcepub fn startup_timeout(self, timeout: Duration) -> Self
pub fn startup_timeout(self, timeout: Duration) -> Self
Performs the startup_timeout operation.
Sourcepub fn reconnect(self, policy: ReconnectPolicy) -> Self
pub fn reconnect(self, policy: ReconnectPolicy) -> Self
Performs the reconnect operation.
Sourcepub fn build(self) -> CameraResult<CaptureRequest>
pub fn build(self) -> CameraResult<CaptureRequest>
Performs the build operation.
Trait Implementations§
Source§impl Clone for CaptureRequestBuilder
impl Clone for CaptureRequestBuilder
Source§fn clone(&self) -> CaptureRequestBuilder
fn clone(&self) -> CaptureRequestBuilder
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 moreAuto Trait Implementations§
impl Freeze for CaptureRequestBuilder
impl RefUnwindSafe for CaptureRequestBuilder
impl Send for CaptureRequestBuilder
impl Sync for CaptureRequestBuilder
impl Unpin for CaptureRequestBuilder
impl UnsafeUnpin for CaptureRequestBuilder
impl UnwindSafe for CaptureRequestBuilder
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