Struct binance_client_ws::client::Client
source · pub struct Client {
pub broadcast: Option<Sender<String>>,
pub depth_events: Option<Pin<Box<dyn Stream<Item = DepthEvent> + Send + Sync>>>,
/* private fields */
}
Expand description
A WebSocket client for Binance.
Fields§
§broadcast: Option<Sender<String>>
§depth_events: Option<Pin<Box<dyn Stream<Item = DepthEvent> + Send + Sync>>>
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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