Enum embedded_nal::TcpErrorKind
source · #[non_exhaustive]pub enum TcpErrorKind {
PipeClosed,
Other,
}
Expand description
Represents specific errors encountered during TCP operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PipeClosed
The socket has been closed in the direction in which the failing operation was attempted.
Other
Some other error has occurred.
Trait Implementations§
source§impl Clone for TcpErrorKind
impl Clone for TcpErrorKind
source§fn clone(&self) -> TcpErrorKind
fn clone(&self) -> TcpErrorKind
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 TcpErrorKind
impl Debug for TcpErrorKind
source§impl PartialEq for TcpErrorKind
impl PartialEq for TcpErrorKind
source§fn eq(&self, other: &TcpErrorKind) -> bool
fn eq(&self, other: &TcpErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TcpErrorKind
impl StructuralPartialEq for TcpErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for TcpErrorKind
impl Send for TcpErrorKind
impl Sync for TcpErrorKind
impl Unpin for TcpErrorKind
impl UnwindSafe for TcpErrorKind
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