pub struct MediaTrackSettings { /* private fields */ }Expand description
Represents the actual settings of a media track.
MediaTrackSettings contains the current values of all constrainable properties
of a track. These values reflect what the track is actually producing, which may
differ from what was requested via constraints.
§Specification
See MediaTrackSettings in the W3C Media Capture and Streams specification.
§Examples
use rtc::media_stream::MediaStreamTrack;
let settings = track.get_settings();
// Inspect actual track settingsTrait Implementations§
Source§impl Clone for MediaTrackSettings
impl Clone for MediaTrackSettings
Source§fn clone(&self) -> MediaTrackSettings
fn clone(&self) -> MediaTrackSettings
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 MediaTrackSettings
impl Debug for MediaTrackSettings
Source§impl Default for MediaTrackSettings
impl Default for MediaTrackSettings
Source§fn default() -> MediaTrackSettings
fn default() -> MediaTrackSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MediaTrackSettings
impl RefUnwindSafe for MediaTrackSettings
impl Send for MediaTrackSettings
impl Sync for MediaTrackSettings
impl Unpin for MediaTrackSettings
impl UnwindSafe for MediaTrackSettings
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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