pub struct RpcWebSocketHandler<Ops>where
    Ops: Send + Sync + TryFrom<u32> + 'static,
{ /* private fields */ }

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Context type used by impl trait to represent websocket connection
Called immediately when connection is established This function can return an error to terminate the connection Read more
Called upon receipt of the first websocket message if with_handshake() returns true This function can return an error to terminate the connection Read more
Called for every websocket message This function can return an error to terminate the connection Read more
Enables optional invocation of the handshake method with the first message received form the incoming websocket Read more
Sets the default connection timeout if no messages have been received
Called upon websocket disconnection

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.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.