pub enum RTCIceTransportState {
Unspecified,
New,
Checking,
Connected,
Completed,
Failed,
Disconnected,
Closed,
}
Expand description
ICETransportState represents the current state of the ICE transport.
Variants§
Unspecified
New
ICETransportStateNew indicates the ICETransport is waiting for remote candidates to be supplied.
Checking
ICETransportStateChecking indicates the ICETransport has received at least one remote candidate, and a local and remote ICECandidateComplete dictionary was not added as the last candidate.
Connected
ICETransportStateConnected indicates the ICETransport has received a response to an outgoing connectivity check, or has received incoming DTLS/media after a successful response to an incoming connectivity check, but is still checking other candidate pairs to see if there is a better connection.
Completed
ICETransportStateCompleted indicates the ICETransport tested all appropriate candidate pairs and at least one functioning candidate pair has been found.
Failed
ICETransportStateFailed indicates the ICETransport the last candidate was added and all appropriate candidate pairs have either failed connectivity checks or have lost consent.
Disconnected
ICETransportStateDisconnected indicates the ICETransport has received at least one local and remote candidate, but the final candidate was received yet and all appropriate candidate pairs thus far have been tested and failed.
Closed
ICETransportStateClosed indicates the ICETransport has shut down and is no longer responding to STUN requests.
Trait Implementations§
source§impl Clone for RTCIceTransportState
impl Clone for RTCIceTransportState
source§fn clone(&self) -> RTCIceTransportState
fn clone(&self) -> RTCIceTransportState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RTCIceTransportState
impl Debug for RTCIceTransportState
source§impl Default for RTCIceTransportState
impl Default for RTCIceTransportState
source§fn default() -> RTCIceTransportState
fn default() -> RTCIceTransportState
source§impl Display for RTCIceTransportState
impl Display for RTCIceTransportState
source§impl From<&str> for RTCIceTransportState
impl From<&str> for RTCIceTransportState
source§impl From<ConnectionState> for RTCIceTransportState
impl From<ConnectionState> for RTCIceTransportState
source§fn from(raw: ConnectionState) -> Self
fn from(raw: ConnectionState) -> Self
source§impl From<u8> for RTCIceTransportState
impl From<u8> for RTCIceTransportState
source§impl PartialEq for RTCIceTransportState
impl PartialEq for RTCIceTransportState
source§fn eq(&self, other: &RTCIceTransportState) -> bool
fn eq(&self, other: &RTCIceTransportState) -> bool
self
and other
values to be equal, and is used
by ==
.