diff options
| author | Ulf Lilleengen <[email protected]> | 2022-06-01 13:48:28 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-06-01 13:48:28 +0200 |
| commit | 8b676e65ade55b740062dcd534088196fb275dad (patch) | |
| tree | 507dc2cf5025949cfa23478becc2735783764874 | |
| parent | 39cffdd123015da72ad99feebafa4d28d4e1b79c (diff) | |
Add embedded-io implementation of ConnectError
| -rw-r--r-- | embassy-net/src/tcp.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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> { | |||
| 259 | } | 259 | } |
| 260 | } | 260 | } |
| 261 | 261 | ||
| 262 | impl embedded_io::Error for ConnectError { | ||
| 263 | fn kind(&self) -> embedded_io::ErrorKind { | ||
| 264 | embedded_io::ErrorKind::Other | ||
| 265 | } | ||
| 266 | } | ||
| 267 | |||
| 262 | impl embedded_io::Error for Error { | 268 | impl embedded_io::Error for Error { |
| 263 | fn kind(&self) -> embedded_io::ErrorKind { | 269 | fn kind(&self) -> embedded_io::ErrorKind { |
| 264 | embedded_io::ErrorKind::Other | 270 | embedded_io::ErrorKind::Other |
