pub struct SpotWebsocketApiClient { /* private fields */ }
Implementations§
Source§impl SpotWebsocketApiClient
impl SpotWebsocketApiClient
pub fn subscribe_orderbook<S: AsRef<str>>( &mut self, symbol: S, depth: OrderbookDepth, )
pub fn subscribe_trade<S: AsRef<str>>(&mut self, symbol: S)
pub fn subscribe_ticker<S: AsRef<str>>(&mut self, symbol: S)
pub fn subscribe_kline<S: AsRef<str>>( &mut self, symbol: S, interval: KlineInterval, )
pub fn subscribe_lt_kline<S: AsRef<str>>( &mut self, symbol: S, interval: KlineInterval, )
pub fn subscribe_lt_ticker<S: AsRef<str>>(&mut self, symbol: S)
pub fn run<C: Callback<SpotPublicResponseArg>>(&self, callback: C) -> Result<()>
Auto Trait Implementations§
impl Freeze for SpotWebsocketApiClient
impl RefUnwindSafe for SpotWebsocketApiClient
impl Send for SpotWebsocketApiClient
impl Sync for SpotWebsocketApiClient
impl Unpin for SpotWebsocketApiClient
impl UnwindSafe for SpotWebsocketApiClient
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