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

PeerConnection’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§

source§

impl Clone for PeerConnectionState

source§

fn clone(&self) -> PeerConnectionState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PeerConnectionState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for PeerConnectionState

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<IceConnectionState> for PeerConnectionState

source§

fn from(ice_con_state: IceConnectionState) -> Self

Converts to this type from the input type.
source§

impl PartialEq<PeerConnectionState> for PeerConnectionState

source§

fn eq(&self, other: &PeerConnectionState) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for PeerConnectionState

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for PeerConnectionState

source§

impl Eq for PeerConnectionState

source§

impl StructuralEq for PeerConnectionState

source§

impl StructuralPartialEq for PeerConnectionState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,