Struct std_embedded_nal::Stack[][src]

pub struct Stack;

The operating system's network stack, implementing embedded_nal::UdpStack and others.

This is most easily accessed using the static STACK instance.

The stack can be cloned, as it is not a resource that needs any synchronization. This is not made implicit as Copy, though (although there's not technical reason not to). That is to alert users to the difficulties that'd arise when taking ownership of a stack rather than just using it through a shared reference (which is generally possible in embedded_nal).

Trait Implementations

impl Clone for Stack[src]

impl Dns for Stack[src]

type Error = Error

The type returned when we have an error

impl TcpClient for Stack[src]

type TcpSocket = TcpSocket

The type returned when we create a new TCP socket

type Error = Error

The type returned when we have an error

impl UdpClient for Stack[src]

type UdpSocket = UdpSocket

The type returned when we create a new UDP socket

type Error = Error

The type returned when we have an error

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.