Enum esp8266_wifi_serial::NetworkEvent[][src]

pub enum NetworkEvent<'a, const N: usize> {
    Connected {
        link_id: u16,
    },
    Closed {
        link_id: u16,
    },
    DataAvailable {
        link_id: u16,
        data: ReadData<'a, N>,
    },
}
Expand description

Incoming network event.

Variants

Connected

A new peer connected.

Fields of Connected

link_id: u16

Connection identifier.

Closed

The connection with the peer is closed.

Fields of Closed

link_id: u16

Connection identifier.

DataAvailable

Bytes received from the peer.

Fields of DataAvailable

link_id: u16

Connection identifier.

data: ReadData<'a, N>

Received data.

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.