pub trait WebSocketOption<H>: HandlerOption {
type WebSocketHandler: 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 websocket::WebSocketHandlers
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.
Implementors§
Source§impl<H: FnMut(Value) + Send + 'static> WebSocketOption<H> for BinanceOption
Available on crate feature binance
only.
impl<H: FnMut(Value) + Send + 'static> WebSocketOption<H> for BinanceOption
Available on crate feature
binance
only.Source§impl<H: FnMut(Value) + Send + 'static> WebSocketOption<H> for BybitOption
Available on crate feature bybit
only.
impl<H: FnMut(Value) + Send + 'static> WebSocketOption<H> for BybitOption
Available on crate feature
bybit
only.Source§impl<H: FnMut(Value) + Send + 'static> WebSocketOption<H> for CoincheckOption
Available on crate feature coincheck
only.
impl<H: FnMut(Value) + Send + 'static> WebSocketOption<H> for CoincheckOption
Available on crate feature
coincheck
only.Source§impl<H: FnMut(BitFlyerChannelMessage) + Send + 'static> WebSocketOption<H> for BitFlyerOption
Available on crate feature bitflyer
only.
impl<H: FnMut(BitFlyerChannelMessage) + Send + 'static> WebSocketOption<H> for BitFlyerOption
Available on crate feature
bitflyer
only.