Enum medea_jason::peer::TransitableState [−][src]
All media exchange states in which MediaStateControllable
can be.
Variants
State of transition.
Stable state.
Implementations
impl<S, T> TransitableState<S, T> where
T: InTransition<Stable = S> + Into<TransitableState<S, T>>,
S: InStable<Transition = T> + Into<TransitableState<S, T>>,
[src]
T: InTransition<Stable = S> + Into<TransitableState<S, T>>,
S: InStable<Transition = T> + Into<TransitableState<S, T>>,
#[must_use]pub fn transition_to(self, desired_state: S) -> Self
[src]
Starts transition into the desired_state
changing the state to
TransitableState::Transition
.
No-op if already in the desired_state
.
#[must_use]pub fn cancel_transition(self) -> Self
[src]
Cancels an ongoing transition, if any.
Trait Implementations
impl<S: Clone, T: Clone> Clone for TransitableState<S, T>
[src]
fn clone(&self) -> TransitableState<S, T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Copy, T: Copy> Copy for TransitableState<S, T>
[src]
impl<S: Debug, T: Debug> Debug for TransitableState<S, T>
[src]
impl<S: Eq, T: Eq> Eq for TransitableState<S, T>
[src]
impl<S: PartialEq, T: PartialEq> PartialEq<TransitableState<S, T>> for TransitableState<S, T>
[src]
fn eq(&self, other: &TransitableState<S, T>) -> bool
[src]
fn ne(&self, other: &TransitableState<S, T>) -> bool
[src]
impl<S, T> StructuralEq for TransitableState<S, T>
[src]
impl<S, T> StructuralPartialEq for TransitableState<S, T>
[src]
Auto Trait Implementations
impl<S, T> RefUnwindSafe for TransitableState<S, T> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for TransitableState<S, T> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<S, T> Sync for TransitableState<S, T> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<S, T> Unpin for TransitableState<S, T> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<S, T> UnwindSafe for TransitableState<S, T> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
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.