Trait crypto_botters::traits::WebSocketOption
source · 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
Object Safety§
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.