logo
pub enum IncomingData {
    Binary(Vec<u8, Global>),
    Text(Vec<u8, Global>),
    Pong(Vec<u8, Global>),
}
Expand description

Data received over the websocket connection.

Variants

Binary(Vec<u8, Global>)

Binary application data.

Text(Vec<u8, Global>)

UTF-8 encoded application data.

Pong(Vec<u8, Global>)

PONG control frame data.

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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 protocol name as bytes. Transmitted on the network. Read more

Should always be Self

Encode the hex strict representing self into the result. Lower case letters are used (e.g. f9b4ca) Read more

Encode the hex strict representing self into the result. Upper case letters are used (e.g. F9B4CA) Read more

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)

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.