Struct esp8266_wifi_serial::NetworkSession[][src]

pub struct NetworkSession<Rx, Tx, C, const N: usize> where
    Rx: Read<u8> + 'static,
    Tx: Write<u8> + 'static,
    C: SimpleClock
{ /* fields omitted */ }
Expand description

A session with the typical network operations.

Implementations

Begins to listen to the incoming TCP connections on the specified port.

Establishes a TCP connection with the specified IP address, link identifier will be associated with the given IP address. Then it will be possible to send data using this link ID.

Non-blocking polling to get a new network event.

Sends data packet via the TCP socket with the link given identifier.

Notes

No more than 2048 bytes can be sent at a time.

Gets network session information.

Returns a reference to underlying clock instance.

Returns an operations timeout.

Trait Implementations

Formats the value using the given formatter. Read more

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 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.