pub enum SocketError {
Show 18 variants
InvalidAddress,
AddressInUse,
AddressNotAvailable,
ConnectionRefused,
ConnectionReset,
ConnectionAborted,
NotConnected,
AlreadyConnected,
InvalidOperation,
NotListening,
NoConnections,
WouldBlock,
InvalidArgument,
NotSupported,
NoRoute,
ProtocolNotSupported,
InvalidPacket,
Other(String),
}Expand description
Socket errors
Variants§
InvalidAddress
Invalid socket address
AddressInUse
Address already in use
AddressNotAvailable
Address not available
ConnectionRefused
Connection refused
ConnectionReset
Connection reset by peer
ConnectionAborted
Connection aborted
NotConnected
Not connected
AlreadyConnected
Already connected
InvalidOperation
Invalid operation for socket state
NotListening
Socket is not listening
NoConnections
No pending connections
WouldBlock
Operation would block
InvalidArgument
Invalid argument
NotSupported
Not supported
NoRoute
No route to destination
ProtocolNotSupported
Protocol not supported
InvalidPacket
Invalid packet format
Other(String)
Custom error message
Trait Implementations§
Source§impl Clone for SocketError
impl Clone for SocketError
Source§fn clone(&self) -> SocketError
fn clone(&self) -> SocketError
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 SocketError
impl Debug for SocketError
Source§impl PartialEq for SocketError
impl PartialEq for SocketError
impl Eq for SocketError
impl StructuralPartialEq for SocketError
Auto Trait Implementations§
impl Freeze for SocketError
impl RefUnwindSafe for SocketError
impl Send for SocketError
impl Sync for SocketError
impl Unpin for SocketError
impl UnwindSafe for SocketError
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.