pub trait WebSocketPipe:
Send
+ Sync
+ 'static {
// Required method
fn transform(
&self,
message: WebSocketMessage,
) -> BoxFuture<'static, Result<WebSocketMessage>>;
}Expand description
Message transformation hook for WebSocket gateways.
Required Methods§
fn transform( &self, message: WebSocketMessage, ) -> BoxFuture<'static, Result<WebSocketMessage>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".