pub enum DataChannelState {
Connecting,
Open,
Closing,
Closed,
}Expand description
DataChannelState indicates the state of a data channel.
Variants§
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 DataChannelState
impl Clone for DataChannelState
Source§fn clone(&self) -> DataChannelState
fn clone(&self) -> DataChannelState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DataChannelState
Source§impl Debug for DataChannelState
impl Debug for DataChannelState
impl Eq for DataChannelState
Source§impl Hash for DataChannelState
impl Hash for DataChannelState
Source§impl PartialEq for DataChannelState
impl PartialEq for DataChannelState
Source§fn eq(&self, other: &DataChannelState) -> bool
fn eq(&self, other: &DataChannelState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DataChannelState
impl Serialize for DataChannelState
impl StructuralPartialEq for DataChannelState
Auto Trait Implementations§
impl Freeze for DataChannelState
impl RefUnwindSafe for DataChannelState
impl Send for DataChannelState
impl Sync for DataChannelState
impl Unpin for DataChannelState
impl UnsafeUnpin for DataChannelState
impl UnwindSafe for DataChannelState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§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