pub trait WebSocketExceptionFilter:
Send
+ Sync
+ 'static {
// Required method
fn catch(
&self,
context: WebSocketContext,
error: BootError,
) -> BoxFuture<'static, Result<Option<WebSocketExceptionResponse>>>;
}Expand description
Maps WebSocket gateway errors to outbound messages.
Required Methods§
fn catch( &self, context: WebSocketContext, error: BootError, ) -> BoxFuture<'static, Result<Option<WebSocketExceptionResponse>>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".