Enum medea_jason::peer::MediaState [−][src]
All media states which can be toggled in the MediaStateControllable
.
Variants
Mute(Stable)
Responsible for changing enabled
property of
MediaStreamTrack.
MediaExchange(Stable)
Responsible for changing RTCRtpTransceiverDirection to stop traffic flow.
Requires renegotiation for changes to take an effect.
Implementations
impl MediaState
[src]
#[must_use]pub fn generate_track_patch(self, track_id: TrackId) -> TrackPatchCommand
[src]
Generates TrackPatchCommand
with a provided TrackId
basing on
this MediaState
.
If MediaState
is MediaState::Mute
then
TrackPatchCommand::muted
will be Some
.
If MediaState
is MediaState::MediaExchange
then
TrackPatchCommand::enabled
will be Some
.
#[must_use]pub fn opposite(self) -> Self
[src]
Returns the opposite value to this mute_state::Stable
.
Trait Implementations
impl Clone for MediaState
[src]
fn clone(&self) -> MediaState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MediaState
[src]
impl Debug for MediaState
[src]
impl From<Stable> for MediaState
[src]
fn from(original: Stable) -> MediaState
[src]
impl From<Stable> for MediaState
[src]
fn from(original: Stable) -> MediaState
[src]
Auto Trait Implementations
impl RefUnwindSafe for MediaState
impl Send for MediaState
impl Sync for MediaState
impl Unpin for MediaState
impl UnwindSafe for MediaState
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.