pub enum SocketError {
UnsupportedAddressFamily,
Errno(i32),
Other(String),
Unknown,
}Expand description
An error that can occur with a socket
Variants§
UnsupportedAddressFamily
Unsupported address family
Errno(i32)
Socket error with errno
Other(String)
Other error
Unknown
Unknown error
Trait Implementations§
Source§impl Clone for SocketError
impl Clone for SocketError
Source§fn clone(&self) -> SocketError
fn clone(&self) -> SocketError
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 SocketError
impl Debug for SocketError
Source§impl Default for SocketError
impl Default for SocketError
Source§fn default() -> SocketError
fn default() -> SocketError
Returns the “default value” for a type. Read more
Source§impl Display for SocketError
impl Display 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§
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