#[non_exhaustive]pub enum StreamName {
AllTickers,
AllMarkPrices,
AggTrade(Symbol),
Kline(Symbol, Interval),
MarkPrice(Symbol),
Ticker(Symbol),
PartialDepth(Symbol, DepthLevels, DepthSpeed),
BookTicker(Symbol),
}Expand description
A USDⓈ-M market stream.
Display renders the wire name, with the symbol’s ASCII letters
lowercased (btcusdt@aggTrade, 币安人生usdt@markPrice@1s), and FromStr
parses an echoed name back; Symbol::new uppercases ASCII, so the two
round-trip.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AllTickers
!ticker@arr: 24-hour tickers of every symbol that changed.
AllMarkPrices
!markPrice@arr@1s: mark price and funding of every symbol, each second.
AggTrade(Symbol)
<s>@aggTrade.
Kline(Symbol, Interval)
<s>@kline_<interval>.
MarkPrice(Symbol)
<s>@markPrice@1s.
Ticker(Symbol)
<s>@ticker.
PartialDepth(Symbol, DepthLevels, DepthSpeed)
<s>@depth<levels>@<speed>, on the /public path.
BookTicker(Symbol)
<s>@bookTicker, on the /public path.
Implementations§
Source§impl StreamName
impl StreamName
Trait Implementations§
Source§impl Clone for StreamName
impl Clone for StreamName
Source§impl Debug for StreamName
impl Debug for StreamName
Source§impl Display for StreamName
impl Display for StreamName
impl Eq for StreamName
Source§impl FromStr for StreamName
impl FromStr for StreamName
Source§impl Hash for StreamName
impl Hash for StreamName
Source§impl PartialEq for StreamName
impl PartialEq for StreamName
impl StructuralPartialEq for StreamName
Auto Trait Implementations§
impl Freeze for StreamName
impl RefUnwindSafe for StreamName
impl Send for StreamName
impl Sync for StreamName
impl Unpin for StreamName
impl UnsafeUnpin for StreamName
impl UnwindSafe for StreamName
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.