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: u64Implementations§
Source§impl CaptureBuilder
impl CaptureBuilder
pub fn new() -> Self
Sourcepub fn with_video_encoder(self, encoder: VideoEncoder) -> Self
pub fn with_video_encoder(self, encoder: VideoEncoder) -> Self
Optional: Force use a specific video encoder. Default: Uses EGL to determine GPU at runtime.
Sourcepub fn with_audio_encoder(self, encoder: AudioEncoder) -> Self
pub fn with_audio_encoder(self, encoder: AudioEncoder) -> Self
Optional: Force use a specific audio encoder. Default: Opus audio encoder.
pub fn with_cursor_shown(self) -> Self
pub fn with_audio(self) -> Self
pub fn with_quality_preset(self, quality: QualityPreset) -> Self
Sourcepub fn with_target_fps(self, fps: u64) -> Self
pub fn with_target_fps(self, fps: u64) -> Self
Optional: Set a target FPS for the recording. Default: 60fps
pub fn build(self) -> Result<Capture<DynamicEncoder>>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().