Enum medea_jason::peer::media::mute_state::Transition
source · pub enum Transition {
Muting(Stable),
Unmuting(Stable),
}
Expand description
MuteState
in transition to another Stable
.
Stable
which is stored in Transition
variants is a state which we
have already, but we still waiting for the desired state update. If the
desired state update won’t be received, then the stored Stable
will be
applied.
Variants§
Muting(Stable)
MediaStateControllable
should be muted, but awaits server
permission.
Unmuting(Stable)
MediaStateControllable
should be unmuted, but awaits server
permission.
Trait Implementations§
source§impl Clone for Transition
impl Clone for Transition
source§fn clone(&self) -> Transition
fn clone(&self) -> Transition
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 Debug for Transition
impl Debug for Transition
source§impl From<Transition> for MuteState
impl From<Transition> for MuteState
source§fn from(from: Transition) -> Self
fn from(from: Transition) -> Self
Converts to this type from the input type.
source§impl InTransition for Transition
impl InTransition for Transition
§type Stable = Stable
type Stable = Stable
Stable invariants of this
InTransition
.source§fn set_inner(self, inner: Self::Stable) -> Self
fn set_inner(self, inner: Self::Stable) -> Self
Sets inner
InTransition::Stable
state.source§fn into_inner(self) -> Self::Stable
fn into_inner(self) -> Self::Stable
Returns inner
InTransition::Stable
state.source§fn opposite(self) -> Self
fn opposite(self) -> Self
Returns opposite to this
InTransition
.source§impl PartialEq<Transition> for Transition
impl PartialEq<Transition> for Transition
source§fn eq(&self, other: &Transition) -> bool
fn eq(&self, other: &Transition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Transition
impl Eq for Transition
impl StructuralEq for Transition
impl StructuralPartialEq for Transition
Auto Trait Implementations§
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnwindSafe for Transition
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