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
impl Clone for PeerConnectionState
Source§fn clone(&self) -> PeerConnectionState
fn clone(&self) -> PeerConnectionState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PeerConnectionState
Source§impl Debug for PeerConnectionState
impl Debug for PeerConnectionState
Source§impl<'de> Deserialize<'de> for PeerConnectionState
impl<'de> Deserialize<'de> for PeerConnectionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PeerConnectionState
Source§impl From<IceConnectionState> for PeerConnectionState
impl From<IceConnectionState> for PeerConnectionState
Source§fn from(ice_con_state: IceConnectionState) -> Self
fn from(ice_con_state: IceConnectionState) -> Self
Source§impl PartialEq for PeerConnectionState
impl PartialEq for PeerConnectionState
Source§fn eq(&self, other: &PeerConnectionState) -> bool
fn eq(&self, other: &PeerConnectionState) -> bool
self and other values to be equal, and is used by ==.