[][src]Crate embedded_nal

Re-exports

pub use nb;

Structs

Ipv4Addr

An IPv4 address.

Ipv6Addr

An IPv6 address.

SocketAddrV4

An IPv4 socket address.

SocketAddrV6

An IPv6 socket address.

Enums

AddrType

This is the host address type to be returned by gethostbyname.

IpAddr

An IP address, either IPv4 or IPv6.

Mode

Whether a socket should block when a read/write can't be performed, or return early.

SocketAddr

An internet socket address, either IPv4 or IPv6.

Traits

Dns

This trait is an extension trait for TcpStack and UdpStack for dns resolutions. It does not handle every DNS record type, but is meant as an embedded alternative to ToSocketAddrs, and is as such meant to resolve an ip address from a hostname, or a hostname from an ip address. This means that it only deals in host address records A (IPv4) and AAAA (IPv6).

TcpStack

This trait is implemented by TCP/IP stacks. You could, for example, have an implementation which knows how to send AT commands to an ESP8266 WiFi module. You could have another implemenation which knows how to driver the Rust Standard Library's std::net module. Given this trait, you can how write a portable HTTP client which can work with either implementation.

UdpStack

This trait is implemented by UDP/IP stacks. You could, for example, have an implementation which knows how to send AT commands to an ESP8266 WiFi module. You could have another implemenation which knows how to driver the Rust Standard Library's std::net module. Given this trait, you can how write a portable CoAP client which can work with either implementation.