Enum medea_jason::peer::TransitableState[][src]

pub enum TransitableState<S, T> {
    Transition(T),
    Stable(S),
}

All media exchange states in which MediaStateControllable can be.

Variants

Transition(T)

State of transition.

Stable(S)

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]

#[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]

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]

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

impl<S, T> Send for TransitableState<S, T> where
    S: Send,
    T: Send

impl<S, T> Sync for TransitableState<S, T> where
    S: Sync,
    T: Sync

impl<S, T> Unpin for TransitableState<S, T> where
    S: Unpin,
    T: Unpin

impl<S, T> UnwindSafe for TransitableState<S, T> where
    S: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<E> WrapTraced<E> for E[src]