Enum deno_websocket::NextEventResponse[][src]

pub enum NextEventResponse {
    String(String),
    Binary(ZeroCopyBuf),
    Close {
        code: u16,
        reason: String,
    },
    Ping,
    Pong,
    Error(String),
    Closed,
}

Variants

String(String)
Binary(ZeroCopyBuf)
Close
Show fields

Fields of Close

code: u16reason: String
Ping
Pong
Error(String)
Closed

Trait Implementations

Serialize this value into the given Serde serializer. 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.

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.