Struct webrtc_media::track::constraint::video::Video
source · [−]pub struct Video {
pub width: Option<Width>,
pub height: Option<Height>,
pub aspect_ratio: Option<AspectRatio>,
pub frame_rate: Option<FrameRate>,
pub facing_mode: Option<FacingMode>,
pub resize_mode: Option<ResizeMode>,
}
Expand description
A video’s constraints
Fields
width: Option<Width>
height: Option<Height>
aspect_ratio: Option<AspectRatio>
frame_rate: Option<FrameRate>
facing_mode: Option<FacingMode>
resize_mode: Option<ResizeMode>
Implementations
sourceimpl Video
impl Video
pub fn builder() -> VideoBuilder
pub fn new(
width: Option<Width>,
height: Option<Height>,
aspect_ratio: Option<AspectRatio>,
frame_rate: Option<FrameRate>,
facing_mode: Option<FacingMode>,
resize_mode: Option<ResizeMode>
) -> Self
Trait Implementations
sourceimpl PartialEq<Video> for Video
impl PartialEq<Video> for Video
impl StructuralPartialEq for Video
Auto Trait Implementations
impl RefUnwindSafe for Video
impl Send for Video
impl Sync for Video
impl Unpin for Video
impl UnwindSafe for Video
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more