Enum quicksocket::MessagePayload[][src]

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

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(String)
Binary(Vec<u8>)

Trait Implementations

impl<'source> FromPyObject<'source> for MessagePayload[src]

impl IntoPy<Py<PyAny>> for MessagePayload[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> PyErrArguments for T where
    T: IntoPy<Py<PyAny>> + Send + Sync
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,