aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/src/tcp.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-12-19 12:41:25 +0100
committerGitHub <[email protected]>2025-12-19 12:41:25 +0100
commit14efaf71d76ad0af569522ee0c4082d473fdede7 (patch)
treeee9f4352e70815e97e424bb534c1c096242b9af0 /embassy-net/src/tcp.rs
parent3214021ed5ae17b96ac006c0f460e222502e411d (diff)
parent62ed44f99af9e33d689c8308149f8f992176895f (diff)
Merge pull request #4745 from embassy-rs/io07
Update to embedded-io 0.7
Diffstat (limited to 'embassy-net/src/tcp.rs')
-rw-r--r--embassy-net/src/tcp.rs16
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> {
670mod embedded_io_impls { 670mod 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 {