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
sourceimpl Clone for RTCDataChannelState
impl Clone for RTCDataChannelState
sourcefn clone(&self) -> RTCDataChannelState
fn clone(&self) -> RTCDataChannelState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RTCDataChannelState
impl Debug for RTCDataChannelState
sourceimpl Default for RTCDataChannelState
impl Default for RTCDataChannelState
sourceimpl Display for RTCDataChannelState
impl Display for RTCDataChannelState
sourceimpl From<&str> for RTCDataChannelState
impl From<&str> for RTCDataChannelState
sourceimpl From<u8> for RTCDataChannelState
impl From<u8> for RTCDataChannelState
sourceimpl PartialEq<RTCDataChannelState> for RTCDataChannelState
impl PartialEq<RTCDataChannelState> for RTCDataChannelState
sourcefn eq(&self, other: &RTCDataChannelState) -> bool
fn eq(&self, other: &RTCDataChannelState) -> bool
sourceimpl Serialize for RTCDataChannelState
impl Serialize for RTCDataChannelState
impl Copy for RTCDataChannelState
impl Eq for RTCDataChannelState
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more