#[repr(u32)]pub enum SocketState {
Unconnected = 0,
Bound = 1,
Listening = 2,
Connecting = 3,
Connected = 4,
Disconnecting = 5,
Closed = 6,
}Expand description
Socket state
Variants§
Unconnected = 0
Socket is unbound and unconnected
Bound = 1
Socket is bound to an address
Listening = 2
Socket is listening for connections
Connecting = 3
Socket is connecting (for non-blocking sockets)
Connected = 4
Socket is connected
Disconnecting = 5
Socket is disconnecting
Closed = 6
Socket is closed
Trait Implementations§
Source§impl Clone for SocketState
impl Clone for SocketState
Source§fn clone(&self) -> SocketState
fn clone(&self) -> SocketState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SocketState
impl Debug for SocketState
Source§impl PartialEq for SocketState
impl PartialEq for SocketState
impl Copy for SocketState
impl Eq for SocketState
impl StructuralPartialEq for SocketState
Auto Trait Implementations§
impl Freeze for SocketState
impl RefUnwindSafe for SocketState
impl Send for SocketState
impl Sync for SocketState
impl Unpin for SocketState
impl UnwindSafe for SocketState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.