pub enum ChannelState {
Idle,
Connecting,
Connected,
Reconnecting,
Failed,
Closing,
Closed,
}Expand description
Where a channel is in its lifecycle.
Variants§
Idle
Created and never connected.
Connecting
The first connection attempt is running.
Connected
A WebSocket is established. Nothing more is implied.
Reconnecting
The connection dropped and is being recovered.
Failed
Connecting or recovery failed. Connect may be called again.
Closing
Close is shutting the connection down.
Closed
Terminal. Create a new channel to connect again.
Implementations§
Trait Implementations§
Source§impl Clone for ChannelState
impl Clone for ChannelState
impl Copy for ChannelState
Source§impl Debug for ChannelState
impl Debug for ChannelState
Source§impl Display for ChannelState
impl Display for ChannelState
impl Eq for ChannelState
Source§impl Hash for ChannelState
impl Hash for ChannelState
Source§impl PartialEq for ChannelState
impl PartialEq for ChannelState
impl StructuralPartialEq for ChannelState
Auto Trait Implementations§
impl Freeze for ChannelState
impl RefUnwindSafe for ChannelState
impl Send for ChannelState
impl Sync for ChannelState
impl Unpin for ChannelState
impl UnsafeUnpin for ChannelState
impl UnwindSafe for ChannelState
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