pub enum IceConnectionState {
New,
Checking,
Connected,
Completed,
Failed,
Disconnected,
Closed,
}
Expand description
PeerConnection
’s ICE connection state.
Variants§
New
ICE agent is gathering addresses or is waiting to be given remote candidates.
Checking
ICE agent has been given one or more remote candidates and is checking
pairs of local and remote candidates against one another to try to find
a compatible match, but hasn’t yet found a pair which will allow the
PeerConnection
to be made. It’s possible that gathering of candidates
is also still underway.
Connected
Usable pairing of local and remote candidates has been found for all components of the connection, and the connection has been established. It’s possible that gathering is still underway, and it’s also possible that the ICE agent is still checking candidates against one another looking for a better connection to use.
Completed
ICE agent has finished gathering candidates, has checked all pairs against one another, and has found a connection for all components.
Failed
ICE candidate has checked all candidates pairs against one another and has failed to find compatible matches for all components of the connection. It is, however, possible that the ICE agent did find compatible connections for some components.
Disconnected
Checks to ensure that components are still connected failed for at
least one component of the PeerConnection
. This is a less stringent
test than IceConnectionState::Failed
and may trigger intermittently
and resolve just as spontaneously on less reliable networks, or during
temporary disconnections. When the problem resolves, the connection may
return to the IceConnectionState::Connected
state.
Closed
ICE agent for this PeerConnection
has shut down and is no longer
handling requests.
Trait Implementations§
Source§impl Clone for IceConnectionState
impl Clone for IceConnectionState
Source§fn clone(&self) -> IceConnectionState
fn clone(&self) -> IceConnectionState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more