pub enum RTCDataChannelState {
Unspecified = 0,
Connecting = 1,
Open = 2,
Closing = 3,
Closed = 4,
}
Expand description
DataChannelState indicates the state of a data channel.
Variants§
Unspecified = 0
Connecting = 1
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 = 2
DataChannelStateOpen indicates that the underlying data transport is established and communication is possible.
Closing = 3
DataChannelStateClosing indicates that the procedure to close down the underlying data transport has started.
Closed = 4
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§fn default() -> RTCDataChannelState
fn default() -> RTCDataChannelState
Returns the “default value” for a type. Read more
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 for RTCDataChannelState
impl PartialEq 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 ==
.source§impl Serialize for RTCDataChannelState
impl Serialize for RTCDataChannelState
impl Copy for RTCDataChannelState
impl Eq for RTCDataChannelState
impl StructuralPartialEq for RTCDataChannelState
Auto Trait Implementations§
impl RefUnwindSafe for RTCDataChannelState
impl Send for RTCDataChannelState
impl Sync for RTCDataChannelState
impl Unpin for RTCDataChannelState
impl UnwindSafe for RTCDataChannelState
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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