Skip to main content

IntoWebSocketReply

Trait IntoWebSocketReply 

Source
pub trait IntoWebSocketReply {
    // Required method
    fn into_websocket_reply(self) -> Option<WebSocketMessage>;
}
Expand description

Return value accepted by WebSocket gateway handlers.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoWebSocketReply for ()

Source§

impl IntoWebSocketReply for Option<WebSocketMessage>

Implementors§