pub struct VideoTrackConstraints {
pub device_id: Vec<String>,
pub facing_mode: Option<ConstraintFacingMode>,
pub frame_rate: Option<ConstraintDouble>,
pub height: Option<ConstraintULong>,
pub width: Option<ConstraintULong>,
pub viewport_offset_x: Option<ConstraintULong>,
pub viewport_offset_y: Option<ConstraintULong>,
pub viewport_height: Option<ConstraintULong>,
pub viewport_width: Option<ConstraintULong>,
}
Fields§
§device_id: Vec<String>
§facing_mode: Option<ConstraintFacingMode>
§frame_rate: Option<ConstraintDouble>
§height: Option<ConstraintULong>
§width: Option<ConstraintULong>
§viewport_offset_x: Option<ConstraintULong>
§viewport_offset_y: Option<ConstraintULong>
§viewport_height: Option<ConstraintULong>
§viewport_width: Option<ConstraintULong>
Implementations§
Source§impl VideoTrackConstraints
impl VideoTrackConstraints
pub fn facing_mode<OptionInnerType>(
self,
value: impl Into<Option<OptionInnerType>>,
) -> Selfwhere
OptionInnerType: Into<ConstraintFacingMode>,
pub fn frame_rate<OptionInnerType>(
self,
value: impl Into<Option<OptionInnerType>>,
) -> Selfwhere
OptionInnerType: Into<ConstraintDouble>,
pub fn height<OptionInnerType>(
self,
value: impl Into<Option<OptionInnerType>>,
) -> Selfwhere
OptionInnerType: Into<ConstraintULong>,
pub fn width<OptionInnerType>(
self,
value: impl Into<Option<OptionInnerType>>,
) -> Selfwhere
OptionInnerType: Into<ConstraintULong>,
pub fn viewport_offset_x<OptionInnerType>(
self,
value: impl Into<Option<OptionInnerType>>,
) -> Selfwhere
OptionInnerType: Into<ConstraintULong>,
pub fn viewport_offset_y<OptionInnerType>(
self,
value: impl Into<Option<OptionInnerType>>,
) -> Selfwhere
OptionInnerType: Into<ConstraintULong>,
pub fn viewport_height<OptionInnerType>(
self,
value: impl Into<Option<OptionInnerType>>,
) -> Selfwhere
OptionInnerType: Into<ConstraintULong>,
pub fn viewport_width<OptionInnerType>(
self,
value: impl Into<Option<OptionInnerType>>,
) -> Selfwhere
OptionInnerType: Into<ConstraintULong>,
Source§impl VideoTrackConstraints
impl VideoTrackConstraints
pub fn new() -> Self
pub fn device_id<M>(self, value: impl IntoDeviceIds<M>) -> Self
Trait Implementations§
Source§impl Clone for VideoTrackConstraints
impl Clone for VideoTrackConstraints
Source§fn clone(&self) -> VideoTrackConstraints
fn clone(&self) -> VideoTrackConstraints
Returns a copy 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 moreSource§impl Debug for VideoTrackConstraints
impl Debug for VideoTrackConstraints
Source§impl Default for VideoTrackConstraints
impl Default for VideoTrackConstraints
Source§fn default() -> VideoTrackConstraints
fn default() -> VideoTrackConstraints
Returns the “default value” for a type. Read more
Source§impl From<VideoTrackConstraints> for VideoConstraints
impl From<VideoTrackConstraints> for VideoConstraints
Source§fn from(value: VideoTrackConstraints) -> Self
fn from(value: VideoTrackConstraints) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VideoTrackConstraints
impl RefUnwindSafe for VideoTrackConstraints
impl Send for VideoTrackConstraints
impl Sync for VideoTrackConstraints
impl Unpin for VideoTrackConstraints
impl UnwindSafe for VideoTrackConstraints
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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