pub struct VideoPreset {
pub encoding: VideoEncoding,
pub width: u32,
pub height: u32,
}Fields§
§encoding: VideoEncoding§width: u32§height: u32Implementations§
Source§impl VideoPreset
impl VideoPreset
pub const fn new( width: u32, height: u32, max_bitrate: u64, max_framerate: f64, ) -> Self
pub fn resolution(&self) -> VideoResolution
Trait Implementations§
Source§impl Clone for VideoPreset
impl Clone for VideoPreset
Source§fn clone(&self) -> VideoPreset
fn clone(&self) -> VideoPreset
Returns a duplicate of the value. Read more
1.0.0 · 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 VideoPreset
impl RefUnwindSafe for VideoPreset
impl Send for VideoPreset
impl Sync for VideoPreset
impl Unpin for VideoPreset
impl UnsafeUnpin for VideoPreset
impl UnwindSafe for VideoPreset
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