Update embedded-nal to 0.9. (#66)
This commit is contained in:
parent
a1a063b0c8
commit
ae29db2fd7
8 changed files with 23 additions and 14 deletions
13
src/tcp.rs
13
src/tcp.rs
|
|
@ -1,3 +1,10 @@
|
|||
use core::{
|
||||
convert::TryFrom,
|
||||
net::{IpAddr, Ipv4Addr, SocketAddr, SocketAddrV4},
|
||||
};
|
||||
|
||||
use embedded_nal::{nb, TcpClientStack, TcpError, TcpErrorKind};
|
||||
|
||||
use crate::{
|
||||
bus::Bus,
|
||||
device::{Device, State},
|
||||
|
|
@ -5,12 +12,6 @@ use crate::{
|
|||
socket::Socket,
|
||||
};
|
||||
|
||||
use embedded_nal::{
|
||||
nb, IpAddr, Ipv4Addr, SocketAddr, SocketAddrV4, TcpClientStack, TcpError, TcpErrorKind,
|
||||
};
|
||||
|
||||
use core::convert::TryFrom;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
pub enum TcpSocketError<E: core::fmt::Debug> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue