Enum medea_client_api_proto::PeerConnectionState[][src]

pub enum PeerConnectionState {
    New,
    Connecting,
    Connected,
    Disconnected,
    Failed,
    Closed,
}

Peer Connection’s connection state.

Variants

New

At least one of the connection’s ICE transports are in the IceConnectionState::New state, and none of them are in one of the following states: IceConnectionState::Checking, IceConnectionState::Failed, or IceConnectionState::Disconnected, or all of the connection’s transports are in the IceConnectionState::Closed state.

Connecting

One or more of the ICE transports are currently in the process of establishing a connection; that is, their IceConnectionState is either IceConnectionState::Checking or IceConnectionState::Connected, and no transports are in the IceConnectionState::Failed state.

Connected

Every ICE transport used by the connection is either in use (state IceConnectionState::Connected or IceConnectionState::Completed) or is closed (IceConnectionState::Closed); in addition, at least one transport is either IceConnectionState::Connected or IceConnectionState::Completed.

Disconnected

At least one of the ICE transports for the connection is in the IceConnectionState::Disconnected state and none of the other transports are in the state IceConnectionState::Failed or IceConnectionState::Checking.

Failed

One or more of the ICE transports on the connection is in the IceConnectionState::Failed state.

Closed

The PeerConnection is closed.

Trait Implementations

impl Clone for PeerConnectionState[src]

impl Copy for PeerConnectionState[src]

impl Debug for PeerConnectionState[src]

impl<'de> Deserialize<'de> for PeerConnectionState[src]

impl Eq for PeerConnectionState[src]

impl From<IceConnectionState> for PeerConnectionState[src]

impl PartialEq<PeerConnectionState> for PeerConnectionState[src]

impl Serialize for PeerConnectionState[src]

impl StructuralEq for PeerConnectionState[src]

impl StructuralPartialEq for PeerConnectionState[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.