Enum str0m::IceConnectionState
source · pub enum IceConnectionState {
New,
Checking,
Connected,
Completed,
Disconnected,
}
Expand description
States the ICE connection can be in.
Variants§
New
The ICE agent is gathering addresses.
Checking
The ICE agent is checking pairs of local and remote candidates against one another to try to find a compatible match, but has not yet found a pair which will allow the peer connection to be made. It is possible that gathering of candidates is also still underway.
Connected
A usable pairing of local and remote candidates has been found, and the
connection has been established. The agent is not in Completed
because
it is still gathering candidates or is still checking candidates against
one another looking for a better connection to use.
Completed
The ICE agent has finished gathering candidates, has checked all pairs against one another, and has found a working connection.
Disconnected
Connection failed. This is a less stringent test than 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 connected state.
Implementations§
source§impl IceConnectionState
impl IceConnectionState
sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Tells if this state is a connected state.
sourcepub fn is_disconnected(&self) -> bool
pub fn is_disconnected(&self) -> bool
Tells if this state is a disconnected state.
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