pub enum RTCDataChannelState {
Unspecified,
Connecting,
Open,
Closing,
Closed,
}
Expand description
DataChannelState indicates the state of a data channel.
Variants§
Unspecified
Connecting
DataChannelStateConnecting indicates that the data channel is being established. This is the initial state of DataChannel, whether created with create_data_channel, or dispatched as a part of an DataChannelEvent.
Open
DataChannelStateOpen indicates that the underlying data transport is established and communication is possible.
Closing
DataChannelStateClosing indicates that the procedure to close down the underlying data transport has started.
Closed
DataChannelStateClosed indicates that the underlying data transport has been closed or could not be established.
Trait Implementations§
source§impl Clone for RTCDataChannelState
impl Clone for RTCDataChannelState
source§fn clone(&self) -> RTCDataChannelState
fn clone(&self) -> RTCDataChannelState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RTCDataChannelState
impl Debug for RTCDataChannelState
source§impl Default for RTCDataChannelState
impl Default for RTCDataChannelState
source§impl Display for RTCDataChannelState
impl Display for RTCDataChannelState
source§impl From<&str> for RTCDataChannelState
impl From<&str> for RTCDataChannelState
source§impl From<u8> for RTCDataChannelState
impl From<u8> for RTCDataChannelState
source§impl PartialEq<RTCDataChannelState> for RTCDataChannelState
impl PartialEq<RTCDataChannelState> for RTCDataChannelState
source§fn eq(&self, other: &RTCDataChannelState) -> bool
fn eq(&self, other: &RTCDataChannelState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.