pub trait WebSocketGatewayInitHook:
Send
+ Sync
+ 'static {
// Required method
fn after_init(
&self,
context: WebSocketGatewayInitContext,
) -> BoxFuture<'static, Result<()>>;
}Expand description
Hook invoked when a WebSocket gateway is initialized during application bootstrap.
Required Methods§
fn after_init( &self, context: WebSocketGatewayInitContext, ) -> BoxFuture<'static, Result<()>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".