pub struct Stack { /* private fields */ }
Expand description

Async-std stack for embedded-nal Doesn’t actually do or contain anything

Implementations

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

Future for get_host_by_name

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

Future for get_host_by_address

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

Future returned by socket function.

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

Future returned by connect function.

Connect to the given remote host and port. Read more

Future returned by is_connected function.

Check if this socket is connected

Future returned by send function.

Write to the stream. Read more

Future returned by receive function.

Receive data from the stream. Read more

Future returned by close function.

Close an existing TCP socket.

Future returned by bind function.

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

Future returned by listen function.

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

Future returned by accept function.

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

Future returned by socket function.

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

Future returned by connect function.

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

Future returned by send function.

Send a datagram to the remote host. Read more

Future returned by receive function.

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

Future returned by close function.

Close an existing UDP socket.

Future returned by bind function.

Bind a UDP socket with a specified port

Future returned by send_to function.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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.