pub enum PeerConnectionState {
New,
Connecting,
Connected,
Disconnected,
Failed,
Closed,
}Expand description
PeerConnection’s connection state.
Variants§
New
At least one of the connection’s ICE transports are in the
IceConnectionState::New state, and none of them are in one
of the following states: IceConnectionState::Checking,
IceConnectionState::Failed, or
IceConnectionState::Disconnected, or all of the connection’s
transports are in the IceConnectionState::Closed state.
Connecting
One or more of the ICE transports are currently in the process of
establishing a connection; that is, their IceConnectionState is
either IceConnectionState::Checking or
IceConnectionState::Connected, and no transports are in the
IceConnectionState::Failed state.
Connected
Every ICE transport used by the connection is either in use (state
IceConnectionState::Connected or IceConnectionState::Completed)
or is closed (IceConnectionState::Closed); in addition,
at least one transport is either IceConnectionState::Connected or
IceConnectionState::Completed.
Disconnected
At least one of the ICE transports for the connection is in the
IceConnectionState::Disconnected state and none of the other
transports are in the state IceConnectionState::Failed or
IceConnectionState::Checking.
Failed
One or more of the ICE transports on the connection is in the
IceConnectionState::Failed state.
Closed
The PeerConnection is closed.
Trait Implementations§
Source§impl Clone for PeerConnectionState
impl Clone for PeerConnectionState
Source§fn clone(&self) -> PeerConnectionState
fn clone(&self) -> PeerConnectionState
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PeerConnectionState
impl Debug for PeerConnectionState
Source§impl<'de> Deserialize<'de> for PeerConnectionState
impl<'de> Deserialize<'de> for PeerConnectionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<IceConnectionState> for PeerConnectionState
impl From<IceConnectionState> for PeerConnectionState
Source§fn from(ice_con_state: IceConnectionState) -> Self
fn from(ice_con_state: IceConnectionState) -> Self
Source§impl PartialEq for PeerConnectionState
impl PartialEq for PeerConnectionState
Source§impl Serialize for PeerConnectionState
impl Serialize for PeerConnectionState
impl Copy for PeerConnectionState
impl Eq for PeerConnectionState
impl StructuralPartialEq for PeerConnectionState
Auto Trait Implementations§
impl Freeze for PeerConnectionState
impl RefUnwindSafe for PeerConnectionState
impl Send for PeerConnectionState
impl Sync for PeerConnectionState
impl Unpin for PeerConnectionState
impl UnwindSafe for PeerConnectionState
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)