pub enum SocketStatus {
Disconnected,
Connecting,
Connected,
WaitingToReconnect,
Closed,
}Expand description
Observable socket lifecycle state.
Variants§
Disconnected
No transport is active and no retry is scheduled.
Connecting
A transport connection attempt is active.
Connected
A transport is connected.
WaitingToReconnect
The reconnect policy scheduled a future attempt.
Closed
The driver shut down permanently.
Trait Implementations§
Source§impl Clone for SocketStatus
impl Clone for SocketStatus
Source§fn clone(&self) -> SocketStatus
fn clone(&self) -> SocketStatus
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 moreSource§impl Debug for SocketStatus
impl Debug for SocketStatus
Source§impl PartialEq for SocketStatus
impl PartialEq for SocketStatus
Source§fn eq(&self, other: &SocketStatus) -> bool
fn eq(&self, other: &SocketStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SocketStatus
impl Eq for SocketStatus
impl StructuralPartialEq for SocketStatus
Auto Trait Implementations§
impl Freeze for SocketStatus
impl RefUnwindSafe for SocketStatus
impl Send for SocketStatus
impl Sync for SocketStatus
impl Unpin for SocketStatus
impl UnsafeUnpin for SocketStatus
impl UnwindSafe for SocketStatus
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