Enum quicksocket::MessagePayload[][src]

pub enum MessagePayload {
    Text(String),
    Binary(Vec<u8>),
}
Expand description

Valid message payloads in the list of messages to provide to try_send_message consist of strings (text messages) and bytes (binary messages).

Passing any other type within the list of objects will raise an exception.

Variants

Text

Tuple Fields of Text

0: String
Binary

Tuple Fields of Binary

0: Vec<u8>

Trait Implementations

Extracts Self from the source PyObject.

Performs the conversion.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Arguments for exception

Should always be Self

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.