pub enum KnownRtcDataChannelState {
Connecting,
Open,
Closing,
Closed,
}Expand description
Possible states of RTCDataChannel’s underlying data connection.
Variants§
Connecting
User agent is attempting to establish the underlying data transport.
This is the initial state of an 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 KnownRtcDataChannelState
impl Clone for KnownRtcDataChannelState
Source§fn clone(&self) -> KnownRtcDataChannelState
fn clone(&self) -> KnownRtcDataChannelState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KnownRtcDataChannelState
impl Debug for KnownRtcDataChannelState
Source§impl<'de> Deserialize<'de> for KnownRtcDataChannelState
impl<'de> Deserialize<'de> for KnownRtcDataChannelState
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 Display for KnownRtcDataChannelState
impl Display for KnownRtcDataChannelState
Source§impl Hash for KnownRtcDataChannelState
impl Hash for KnownRtcDataChannelState
Source§impl PartialEq for KnownRtcDataChannelState
impl PartialEq for KnownRtcDataChannelState
Source§impl Serialize for KnownRtcDataChannelState
impl Serialize for KnownRtcDataChannelState
impl Copy for KnownRtcDataChannelState
impl Eq for KnownRtcDataChannelState
impl StructuralPartialEq for KnownRtcDataChannelState
Auto Trait Implementations§
impl Freeze for KnownRtcDataChannelState
impl RefUnwindSafe for KnownRtcDataChannelState
impl Send for KnownRtcDataChannelState
impl Sync for KnownRtcDataChannelState
impl Unpin for KnownRtcDataChannelState
impl UnwindSafe for KnownRtcDataChannelState
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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)