pub enum KnownDataChannelState {
Connecting,
Open,
Closing,
Closed,
}
Expand description
State of the RTCDataChannel’s underlying data connection.
Variants§
Connecting
User agent is attempting to establish the underlying data transport. This is the initial state of RTCDataChannel object, whether created with createDataChannel, or dispatched as a part of an RTCDataChannelEvent.
Open
Underlying data transport is established and communication is possible.
Closing
procedure
to close down the underlying data transport has
started.
Closed
Underlying data transport has been closed
or could not be
established.
Trait Implementations§
source§impl Clone for KnownDataChannelState
impl Clone for KnownDataChannelState
source§fn clone(&self) -> KnownDataChannelState
fn clone(&self) -> KnownDataChannelState
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 KnownDataChannelState
impl Debug for KnownDataChannelState
source§impl<'de> Deserialize<'de> for KnownDataChannelState
impl<'de> Deserialize<'de> for KnownDataChannelState
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for KnownDataChannelState
impl Hash for KnownDataChannelState
source§impl PartialEq<KnownDataChannelState> for KnownDataChannelState
impl PartialEq<KnownDataChannelState> for KnownDataChannelState
source§fn eq(&self, other: &KnownDataChannelState) -> bool
fn eq(&self, other: &KnownDataChannelState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for KnownDataChannelState
impl Serialize for KnownDataChannelState
impl Copy for KnownDataChannelState
impl Eq for KnownDataChannelState
impl StructuralEq for KnownDataChannelState
impl StructuralPartialEq for KnownDataChannelState
Auto Trait Implementations§
impl RefUnwindSafe for KnownDataChannelState
impl Send for KnownDataChannelState
impl Sync for KnownDataChannelState
impl Unpin for KnownDataChannelState
impl UnwindSafe for KnownDataChannelState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more