summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Lilleengen <lulf@redhat.com>2022-06-01 13:48:28 +0200
committerUlf Lilleengen <lulf@redhat.com>2022-06-01 13:48:28 +0200
commit8b676e65ade55b740062dcd534088196fb275dad (patch)
tree507dc2cf5025949cfa23478becc2735783764874
parent39cffdd123015da72ad99feebafa4d28d4e1b79c (diff)
downloadembassy-8b676e65ade55b740062dcd534088196fb275dad.zip
Add embedded-io implementation of ConnectError
-rw-r--r--embassy-net/src/tcp.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs
index 2d81e66b..35ecf1b0 100644
--- a/embassy-net/src/tcp.rs
+++ b/embassy-net/src/tcp.rs
@@ -259,6 +259,12 @@ impl<'d> TcpIo<'d> {
}
}
+impl embedded_io::Error for ConnectError {
+ fn kind(&self) -> embedded_io::ErrorKind {
+ embedded_io::ErrorKind::Other
+ }
+}
+
impl embedded_io::Error for Error {
fn kind(&self) -> embedded_io::ErrorKind {
embedded_io::ErrorKind::Other