pub struct VideoSettingsBuilder { /* private fields */ }Expand description
The VideoSettings struct represents the settings for the video encoder.
Implementationsยง
Sourceยงimpl VideoSettingsBuilder
impl VideoSettingsBuilder
pub const fn new(width: u32, height: u32) -> Self
pub const fn sub_type(self, sub_type: VideoSettingsSubType) -> Self
pub const fn bitrate(self, bitrate: u32) -> Self
pub const fn width(self, width: u32) -> Self
pub const fn height(self, height: u32) -> Self
pub const fn frame_rate(self, frame_rate: u32) -> Self
pub const fn pixel_aspect_ratio(self, pixel_aspect_ratio: (u32, u32)) -> Self
pub const fn disabled(self, disabled: bool) -> Self
Auto Trait Implementationsยง
impl Freeze for VideoSettingsBuilder
impl RefUnwindSafe for VideoSettingsBuilder
impl Send for VideoSettingsBuilder
impl Sync for VideoSettingsBuilder
impl Unpin for VideoSettingsBuilder
impl UnwindSafe for VideoSettingsBuilder
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