Struct medea_jason::peer::TracksRequest [−][src]
Representation of MediaStreamConstraints object.
It’s used for invoking getUserMedia() to specify what kinds of tracks
should be included into returned MediaStream
, and, optionally,
to establish constraints for those track’s settings.
Implementations
impl TracksRequest
[src]
pub fn add_track_request<T: Into<TrackConstraints>>(
&mut self,
track_id: TrackId,
caps: T
)
[src]
&mut self,
track_id: TrackId,
caps: T
)
Adds track request to this TracksRequest
.
Trait Implementations
impl Debug for TracksRequest
[src]
impl Default for TracksRequest
[src]
fn default() -> TracksRequest
[src]
impl TryFrom<TracksRequest> for SimpleTracksRequest
[src]
type Error = TracksRequestError
The type returned in the event of a conversion error.
fn try_from(value: TracksRequest) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for TracksRequest
impl Send for TracksRequest
impl Sync for TracksRequest
impl Unpin for TracksRequest
impl UnwindSafe for TracksRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.