pub enum RTCPeerConnectionState {
Unspecified,
New,
Connecting,
Connected,
Disconnected,
Failed,
Closed,
}
Expand description
PeerConnectionState indicates the state of the PeerConnection.
Variants§
Unspecified
New
PeerConnectionStateNew indicates that any of the ICETransports or DTLSTransports are in the “new” state and none of the transports are in the “connecting”, “checking”, “failed” or “disconnected” state, or all transports are in the “closed” state, or there are no transports.
Connecting
PeerConnectionStateConnecting indicates that any of the ICETransports or DTLSTransports are in the “connecting” or “checking” state and none of them is in the “failed” state.
Connected
PeerConnectionStateConnected indicates that all ICETransports and DTLSTransports are in the “connected”, “completed” or “closed” state and at least one of them is in the “connected” or “completed” state.
Disconnected
PeerConnectionStateDisconnected indicates that any of the ICETransports or DTLSTransports are in the “disconnected” state and none of them are in the “failed” or “connecting” or “checking” state.
Failed
PeerConnectionStateFailed indicates that any of the ICETransports or DTLSTransports are in a “failed” state.
Closed
PeerConnectionStateClosed indicates the peer connection is closed and the isClosed member variable of PeerConnection is true.
Trait Implementations§
source§impl Clone for RTCPeerConnectionState
impl Clone for RTCPeerConnectionState
source§fn clone(&self) -> RTCPeerConnectionState
fn clone(&self) -> RTCPeerConnectionState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RTCPeerConnectionState
impl Debug for RTCPeerConnectionState
source§impl Default for RTCPeerConnectionState
impl Default for RTCPeerConnectionState
source§fn default() -> RTCPeerConnectionState
fn default() -> RTCPeerConnectionState
source§impl Display for RTCPeerConnectionState
impl Display for RTCPeerConnectionState
source§impl From<&str> for RTCPeerConnectionState
impl From<&str> for RTCPeerConnectionState
source§impl From<u8> for RTCPeerConnectionState
impl From<u8> for RTCPeerConnectionState
source§impl PartialEq for RTCPeerConnectionState
impl PartialEq for RTCPeerConnectionState
source§fn eq(&self, other: &RTCPeerConnectionState) -> bool
fn eq(&self, other: &RTCPeerConnectionState) -> bool
self
and other
values to be equal, and is used
by ==
.