pub struct BinanceWebSocketHandler { /* private fields */ }
Available on crate feature
binance
only.Expand description
A struct
that implements WebSocketHandler
Trait Implementations§
Source§impl WebSocketHandler for BinanceWebSocketHandler
impl WebSocketHandler for BinanceWebSocketHandler
Source§fn websocket_config(&self) -> WebSocketConfig
fn websocket_config(&self) -> WebSocketConfig
Returns a WebSocketConfig that will be applied for all WebSocket connections handled by this handler.
Source§fn handle_message(&mut self, message: WebSocketMessage) -> Vec<WebSocketMessage>
fn handle_message(&mut self, message: WebSocketMessage) -> Vec<WebSocketMessage>
Called when the WebSocketConnection received a message, returns messages to be sent to the server.
Source§fn handle_start(&mut self) -> Vec<WebSocketMessage>
fn handle_start(&mut self) -> Vec<WebSocketMessage>
Called when a new connection has been started, and returns messages that should be sent to the server. Read more
Source§fn handle_close(&mut self, reconnect: bool)
fn handle_close(&mut self, reconnect: bool)
Called when a websocket connection is closed. Read more
Auto Trait Implementations§
impl Freeze for BinanceWebSocketHandler
impl !RefUnwindSafe for BinanceWebSocketHandler
impl Send for BinanceWebSocketHandler
impl !Sync for BinanceWebSocketHandler
impl Unpin for BinanceWebSocketHandler
impl !UnwindSafe for BinanceWebSocketHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more