pub trait WebSocketGatewayDisconnectHook:
Send
+ Sync
+ 'static {
// Required method
fn handle_disconnect(
&self,
connection: WebSocketGatewayConnection,
) -> BoxFuture<'static, Result<()>>;
}Expand description
Hook invoked when a WebSocket client disconnects from a gateway.
Required Methods§
fn handle_disconnect( &self, connection: WebSocketGatewayConnection, ) -> BoxFuture<'static, Result<()>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".