pub enum PeerConnectionState {
New,
Connecting,
Connected,
Disconnected,
Failed,
Closed,
}
Expand description
PeerConnectionState indicates the state of the PeerConnection.
Variants§
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 PeerConnectionState
impl Clone for PeerConnectionState
Source§fn clone(&self) -> PeerConnectionState
fn clone(&self) -> PeerConnectionState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more