pub struct SessionBuilder { /* private fields */ }Implementations§
Source§impl SessionBuilder
impl SessionBuilder
pub fn new() -> Self
pub fn config(&self) -> &SessionConfig
pub fn backend_preference(self, backend_preference: BackendPreference) -> Self
pub fn video_target(self, target: VideoCaptureTarget) -> Self
pub fn audio(self, audio_capture: AudioCapture) -> Self
pub fn pixel_format(self, pixel_format: PixelFormat) -> Self
pub fn restore_token(self, restore_token: impl Into<String>) -> Self
pub fn color_space(self, color_space: Option<ColorSpace>) -> Self
pub fn cursor_mode(self, cursor_mode: CursorMode) -> Self
pub fn crop_rect(self, crop_rect: Option<Rect>) -> Self
pub fn frame_rate(self, frame_rate: Option<u32>) -> Self
pub fn queue_depth(self, queue_depth: u32) -> Self
pub fn build_with_resolver<R>(self, resolver: &R) -> Result<CaptureSession>where
R: BackendResolver,
Trait Implementations§
Source§impl Clone for SessionBuilder
impl Clone for SessionBuilder
Source§fn clone(&self) -> SessionBuilder
fn clone(&self) -> SessionBuilder
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 moreSource§impl Debug for SessionBuilder
impl Debug for SessionBuilder
Source§impl Default for SessionBuilder
impl Default for SessionBuilder
Source§fn default() -> SessionBuilder
fn default() -> SessionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionBuilder
impl RefUnwindSafe for SessionBuilder
impl Send for SessionBuilder
impl Sync for SessionBuilder
impl Unpin for SessionBuilder
impl UnsafeUnpin for SessionBuilder
impl UnwindSafe for SessionBuilder
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