Struct medea_jason::media::constraints::VideoTrackConstraints
source · pub struct VideoTrackConstraints<C> { /* private fields */ }
Expand description
MediaStreamConstraints for the video media type.
Implementations§
source§impl VideoTrackConstraints<DeviceVideoTrackConstraints>
impl VideoTrackConstraints<DeviceVideoTrackConstraints>
sourcepub async fn satisfies<T: AsRef<MediaStreamTrack>>(&self, track: T) -> bool
pub async fn satisfies<T: AsRef<MediaStreamTrack>>(&self, track: T) -> bool
Indicates whether the provided platform::MediaStreamTrack
satisfies
these VideoTrackConstraints
.
Returns false
if these VideoTrackConstraints
don’t have any
constraints configured.
source§impl VideoTrackConstraints<DisplayVideoTrackConstraints>
impl VideoTrackConstraints<DisplayVideoTrackConstraints>
sourcepub async fn satisfies<T: AsRef<MediaStreamTrack>>(&self, track: T) -> bool
pub async fn satisfies<T: AsRef<MediaStreamTrack>>(&self, track: T) -> bool
Indicates whether the provided platform::MediaStreamTrack
satisfies
these VideoTrackConstraints
.
Returns false
if these VideoTrackConstraints
don’t have any
constraints configured.
Trait Implementations§
source§impl<C: Clone> Clone for VideoTrackConstraints<C>
impl<C: Clone> Clone for VideoTrackConstraints<C>
source§fn clone(&self) -> VideoTrackConstraints<C>
fn clone(&self) -> VideoTrackConstraints<C>
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<C: Debug> Debug for VideoTrackConstraints<C>
impl<C: Debug> Debug for VideoTrackConstraints<C>
source§impl<C: Default> Default for VideoTrackConstraints<C>
impl<C: Default> Default for VideoTrackConstraints<C>
source§impl<C: PartialEq> PartialEq<VideoTrackConstraints<C>> for VideoTrackConstraints<C>
impl<C: PartialEq> PartialEq<VideoTrackConstraints<C>> for VideoTrackConstraints<C>
source§fn eq(&self, other: &VideoTrackConstraints<C>) -> bool
fn eq(&self, other: &VideoTrackConstraints<C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<C: Eq> Eq for VideoTrackConstraints<C>
impl<C> StructuralEq for VideoTrackConstraints<C>
impl<C> StructuralPartialEq for VideoTrackConstraints<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for VideoTrackConstraints<C>where C: RefUnwindSafe,
impl<C> Send for VideoTrackConstraints<C>where C: Send,
impl<C> Sync for VideoTrackConstraints<C>where C: Sync,
impl<C> Unpin for VideoTrackConstraints<C>where C: Unpin,
impl<C> UnwindSafe for VideoTrackConstraints<C>where C: UnwindSafe,
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