pub enum SocketReadyState {
Connecting = 0,
Open = 1,
Closing = 2,
Closed = 3,
}
Expand description
A number indicating the state of the WebSocket
.
Variants§
Trait Implementations§
Source§impl Clone for SocketReadyState
impl Clone for SocketReadyState
Source§fn clone(&self) -> SocketReadyState
fn clone(&self) -> SocketReadyState
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 SocketReadyState
impl Debug for SocketReadyState
Source§impl Hash for SocketReadyState
impl Hash for SocketReadyState
Source§impl Ord for SocketReadyState
impl Ord for SocketReadyState
Source§fn cmp(&self, other: &SocketReadyState) -> Ordering
fn cmp(&self, other: &SocketReadyState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SocketReadyState
impl PartialEq for SocketReadyState
Source§impl PartialOrd for SocketReadyState
impl PartialOrd for SocketReadyState
Source§impl TryFrom<Value> for SocketReadyState
impl TryFrom<Value> for SocketReadyState
impl Copy for SocketReadyState
impl Eq for SocketReadyState
impl StructuralPartialEq for SocketReadyState
Auto Trait Implementations§
impl Freeze for SocketReadyState
impl RefUnwindSafe for SocketReadyState
impl Send for SocketReadyState
impl Sync for SocketReadyState
impl Unpin for SocketReadyState
impl UnwindSafe for SocketReadyState
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