Struct std_embedded_nal::Stack[][src]

pub struct Stack;
Expand description

The operating system’s network stack, implementing embedded_nal::UdpFullStack and others.

The user may instantiate a stack using the Stack::default() function.

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 copying around a stack rather than using it through some mechanism of synchronization (which is generally required with embedded_nal since version 0.3).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

The type returned when we have an error

Resolve the first ip address of a host, given its hostname and a desired address record type to look for Read more

Resolve the hostname of a host, given its ip address Read more

The type returned when we create a new TCP socket

The type returned when we have an error

Open a socket for usage as a TCP client. Read more

Connect to the given remote host and port. Read more

Check if this socket is connected

Write to the stream. Read more

Receive data from the stream. Read more

Close an existing TCP socket.

Create a new TCP socket and bind it to the specified local port. Read more

Begin listening for connection requests on a previously-bound socket. Read more

Accept an active connection request on a listening socket. Read more

The type returned when we create a new UDP socket

The type returned when we have an error

Allocate a socket for further use.

Connect a UDP socket with a peer using a dynamically selected port. Read more

Send a datagram to the remote host. Read more

Read a datagram the remote host has sent to us. Read more

Close an existing UDP socket.

Bind a UDP socket with a specified port

Send a packet to a remote host/port.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.