pub struct Stream<C, M>where
C: Serialize + Send + Debug + 'static,
M: ReceivedMessage + DeserializeOwned + Send + Debug + 'static,{ /* private fields */ }Expand description
General WSS information A single connection to stream.binance.com is only valid for 24 hours; expect to be disconnected at the 24 hour mark. A serverShutdown event will be sent 10 minutes before disconnection. Please establish a new connection as soon as possible to prevent interruption. The WebSocket server will send a ping frame every 20 seconds. If the WebSocket server does not receive a pong frame back from the connection within a minute the connection will be disconnected. When you receive a ping, you must send a pong with a copy of ping’s payload as soon as possible. Unsolicited pong frames are allowed, but will not prevent disconnection. It is recommended that the payload for these pong frames are empty.
Implementations§
Auto Trait Implementations§
impl<C, M> Freeze for Stream<C, M>
impl<C, M> RefUnwindSafe for Stream<C, M>
impl<C, M> Send for Stream<C, M>
impl<C, M> Sync for Stream<C, M>
impl<C, M> Unpin for Stream<C, M>
impl<C, M> UnsafeUnpin for Stream<C, M>
impl<C, M> UnwindSafe for Stream<C, M>
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