pub struct CaptureBuilder {
video_encoder: Option<VideoEncoder>,
audio_encoder: Option<AudioEncoder>,
quality_preset: Option<QualityPreset>,
include_cursor: bool,
include_audio: bool,
target_fps: u64,
}
Fields§
§video_encoder: Option<VideoEncoder>
§audio_encoder: Option<AudioEncoder>
§quality_preset: Option<QualityPreset>
§include_cursor: bool
§include_audio: bool
§target_fps: u64
Implementations§
Source§impl CaptureBuilder
impl CaptureBuilder
pub fn new() -> Self
pub fn with_video_encoder(self, encoder: VideoEncoder) -> Self
pub fn with_audio_encoder(self, encoder: AudioEncoder) -> Self
pub fn with_cursor_shown(self) -> Self
pub fn with_audio(self) -> Self
pub fn with_quality_preset(self, quality: QualityPreset) -> Self
pub fn with_target_fps(self, fps: u64) -> Self
pub fn build(self) -> Result<Capture>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CaptureBuilder
impl RefUnwindSafe for CaptureBuilder
impl Send for CaptureBuilder
impl Sync for CaptureBuilder
impl Unpin for CaptureBuilder
impl UnwindSafe 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