pub enum VideoSource {
Device(DeviceVideoTrackConstraints),
Display(DisplayVideoTrackConstraints),
}Expand description
Constraints for the MediaKind::Video local::Track.
Variants§
Device(DeviceVideoTrackConstraints)
local::Track should be received from the getUserMedia request.
Display(DisplayVideoTrackConstraints)
local::Track should be received from the getDisplayMedia request.
Implementations§
Source§impl VideoSource
impl VideoSource
Sourcepub const fn required(&self) -> bool
pub const fn required(&self) -> bool
Returns an importance of this VideoSource.
If this VideoSource is important then without this VideoSource
call session can’t be started.
Sourcepub async fn satisfies<T: AsRef<MediaStreamTrack>>(&self, track: T) -> bool
pub async fn satisfies<T: AsRef<MediaStreamTrack>>(&self, track: T) -> bool
Checks whether the provided platform::MediaStreamTrack satisfies
this VideoSource.
Trait Implementations§
Source§impl Clone for VideoSource
impl Clone for VideoSource
Source§fn clone(&self) -> VideoSource
fn clone(&self) -> VideoSource
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 moreSource§impl Debug for VideoSource
impl Debug for VideoSource
Source§impl From<VideoSettings> for VideoSource
impl From<VideoSettings> for VideoSource
Source§fn from(settings: VideoSettings) -> Self
fn from(settings: VideoSettings) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VideoSource
impl RefUnwindSafe for VideoSource
impl Send for VideoSource
impl Sync for VideoSource
impl Unpin for VideoSource
impl UnwindSafe for VideoSource
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