pub enum BinanceWsEventType {
Show 17 variants
AggTrade,
Trade,
BookTicker,
DepthUpdate,
MarkPriceUpdate,
Kline,
ForceOrder,
Ticker24Hr,
MiniTicker24Hr,
AccountUpdate,
OrderTradeUpdate,
TradeLite,
AlgoUpdate,
MarginCall,
AccountConfigUpdate,
ListenKeyExpired,
Unknown,
}Expand description
WebSocket stream event types.
These are the “e” field values in WebSocket JSON messages.
Variants§
AggTrade
Aggregate trade event.
Trade
Individual trade event.
BookTicker
Book ticker (best bid/ask) event.
DepthUpdate
Depth update (order book delta) event.
MarkPriceUpdate
Mark price update event.
Kline
Kline/candlestick event.
ForceOrder
Forced liquidation order event.
Ticker24Hr
24-hour rolling ticker event.
MiniTicker24Hr
24-hour rolling mini ticker event.
AccountUpdate
Account update (balance and position changes).
OrderTradeUpdate
Order/trade update event.
TradeLite
Trade Lite event (low-latency fill notification).
AlgoUpdate
Algo order update event (Binance Futures Algo Service).
MarginCall
Margin call warning event.
AccountConfigUpdate
Account configuration update (leverage change).
ListenKeyExpired
Listen key expired event.
Unknown
Unknown or undocumented event type.
Implementations§
Trait Implementations§
Source§impl Clone for BinanceWsEventType
impl Clone for BinanceWsEventType
Source§fn clone(&self) -> BinanceWsEventType
fn clone(&self) -> BinanceWsEventType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinanceWsEventType
impl Debug for BinanceWsEventType
Source§impl<'de> Deserialize<'de> for BinanceWsEventType
impl<'de> Deserialize<'de> for BinanceWsEventType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BinanceWsEventType
impl Display for BinanceWsEventType
Source§impl Hash for BinanceWsEventType
impl Hash for BinanceWsEventType
Source§impl PartialEq for BinanceWsEventType
impl PartialEq for BinanceWsEventType
Source§impl Serialize for BinanceWsEventType
impl Serialize for BinanceWsEventType
impl Copy for BinanceWsEventType
impl Eq for BinanceWsEventType
impl StructuralPartialEq for BinanceWsEventType
Auto Trait Implementations§
impl Freeze for BinanceWsEventType
impl RefUnwindSafe for BinanceWsEventType
impl Send for BinanceWsEventType
impl Sync for BinanceWsEventType
impl Unpin for BinanceWsEventType
impl UnsafeUnpin for BinanceWsEventType
impl UnwindSafe for BinanceWsEventType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.