logo
pub struct ConnectionHandler { /* private fields */ }

Trait Implementations

Formats the value using the given formatter. Read more

Called when the WebSocket handshake is successful and the connection is open for sending and receiving messages. Read more

Called on incoming messages.

Called any time this endpoint receives a close control frame. This may be because the other endpoint is initiating a closing handshake, or it may be the other endpoint confirming the handshake initiated by this endpoint. Read more

Called when a timeout is triggered. Read more

A method for creating the initial handshake request for WebSocket clients. Read more

Called when a request to shutdown all connections has been received.

Called when an error occurs on the WebSocket.

A method for handling the low-level workings of the request portion of the WebSocket handshake. Read more

A method for handling the low-level workings of the response portion of the WebSocket handshake. Read more

Called when a timeout has been scheduled on the eventloop. Read more

A method for handling incoming frames. Read more

A method for handling outgoing frames. 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.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more