From 8b676e65ade55b740062dcd534088196fb275dad Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Wed, 1 Jun 2022 13:48:28 +0200 Subject: [PATCH] Add embedded-io implementation of ConnectError --- embassy-net/src/tcp.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs index 2d81e66bd..35ecf1b0c 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