pub trait WebSocketOption<H>: HandlerOption {
type WebSocketHandler;
// Required method
fn websocket_handler(
handler: H,
options: Self::Options,
) -> Self::WebSocketHandler;
}
Expand description
A trait
that shows the implementing type is able to create [generic_api_client::websocket::WebSocketHandler]s
Required Associated Types§
Required Methods§
fn websocket_handler( handler: H, options: Self::Options, ) -> Self::WebSocketHandler
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.