diff options
Diffstat (limited to 'embassy-net/src')
| -rw-r--r-- | embassy-net/src/tcp.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs index b4db7b88c..74672df1c 100644 --- a/embassy-net/src/tcp.rs +++ b/embassy-net/src/tcp.rs | |||
| @@ -670,6 +670,13 @@ impl<'d> TcpIo<'d> { | |||
| 670 | mod embedded_io_impls { | 670 | mod embedded_io_impls { |
| 671 | use super::*; | 671 | use super::*; |
| 672 | 672 | ||
| 673 | impl core::fmt::Display for ConnectError { | ||
| 674 | fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { | ||
| 675 | f.write_str("ConnectError") | ||
| 676 | } | ||
| 677 | } | ||
| 678 | impl core::error::Error for ConnectError {} | ||
| 679 | |||
| 673 | impl embedded_io_async::Error for ConnectError { | 680 | impl embedded_io_async::Error for ConnectError { |
| 674 | fn kind(&self) -> embedded_io_async::ErrorKind { | 681 | fn kind(&self) -> embedded_io_async::ErrorKind { |
| 675 | match self { | 682 | match self { |
| @@ -681,6 +688,15 @@ mod embedded_io_impls { | |||
| 681 | } | 688 | } |
| 682 | } | 689 | } |
| 683 | 690 | ||
| 691 | impl core::fmt::Display for Error { | ||
| 692 | fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { | ||
| 693 | match self { | ||
| 694 | Self::ConnectionReset => f.write_str("ConnectionReset"), | ||
| 695 | } | ||
| 696 | } | ||
| 697 | } | ||
| 698 | impl core::error::Error for Error {} | ||
| 699 | |||
| 684 | impl embedded_io_async::Error for Error { | 700 | impl embedded_io_async::Error for Error { |
| 685 | fn kind(&self) -> embedded_io_async::ErrorKind { | 701 | fn kind(&self) -> embedded_io_async::ErrorKind { |
| 686 | match self { | 702 | match self { |
