Struct crypto_botters::bybit::BybitWebSocketHandler
source · pub struct BybitWebSocketHandler { /* private fields */ }
Available on crate feature
bybit
only.Trait Implementations§
source§impl WebSocketHandler for BybitWebSocketHandler
impl WebSocketHandler for BybitWebSocketHandler
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_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_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_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 !RefUnwindSafe for BybitWebSocketHandler
impl Send for BybitWebSocketHandler
impl !Sync for BybitWebSocketHandler
impl Unpin for BybitWebSocketHandler
impl !UnwindSafe for BybitWebSocketHandler
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