Enum netstack3_core::error::SocketError
source · pub enum SocketError {
Local(LocalAddressError),
Remote(RemoteAddressError),
}
Expand description
Error type for connection errors.
Variants§
Local(LocalAddressError)
Errors related to the local address.
Remote(RemoteAddressError)
Errors related to the remote address.
Trait Implementations§
source§impl Debug for SocketError
impl Debug for SocketError
source§impl Display for SocketError
impl Display for SocketError
source§impl Error for SocketError
impl Error for SocketError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ExistsError> for SocketError
impl From<ExistsError> for SocketError
source§fn from(_: ExistsError) -> SocketError
fn from(_: ExistsError) -> SocketError
Converts to this type from the input type.
source§impl From<LocalAddressError> for SocketError
impl From<LocalAddressError> for SocketError
source§fn from(source: LocalAddressError) -> Self
fn from(source: LocalAddressError) -> Self
Converts to this type from the input type.
source§impl From<NoRouteError> for SocketError
impl From<NoRouteError> for SocketError
source§fn from(_: NoRouteError) -> SocketError
fn from(_: NoRouteError) -> SocketError
Converts to this type from the input type.
source§impl PartialEq for SocketError
impl PartialEq for SocketError
source§fn eq(&self, other: &SocketError) -> bool
fn eq(&self, other: &SocketError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SocketError
Auto Trait Implementations§
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