pub struct BitFlyerWebSocketHandler<H: FnMut(BitFlyerChannelMessage) + Send + 'static> { /* private fields */ }Expand description
A struct that implements WebSocketHandler
Trait Implementations§
Source§impl<H> WebSocketHandler for BitFlyerWebSocketHandler<H>
impl<H> WebSocketHandler for BitFlyerWebSocketHandler<H>
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<H> Freeze for BitFlyerWebSocketHandler<H>where
H: Freeze,
impl<H> RefUnwindSafe for BitFlyerWebSocketHandler<H>where
H: RefUnwindSafe,
impl<H> Send for BitFlyerWebSocketHandler<H>
impl<H> Sync for BitFlyerWebSocketHandler<H>where
H: Sync,
impl<H> Unpin for BitFlyerWebSocketHandler<H>where
H: Unpin,
impl<H> UnwindSafe for BitFlyerWebSocketHandler<H>where
H: UnwindSafe,
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