pub enum ChannelData {
Trades(TradesData),
CandlesSnapshot(CandlesSnapshot),
CandleData(CandleData),
Books(BooksData),
Aggregates(AggregatesData),
Indices(IndicesData),
Unknown(Value),
}Expand description
Parsed channel data with type information
Note: Variants have different sizes due to AggregatesData being larger. Boxing would add indirection overhead for a type frequently used in hot paths. The size difference is acceptable for streaming message handling.
Variants§
Trades(TradesData)
Trades channel data
CandlesSnapshot(CandlesSnapshot)
Candles snapshot (entire day of 1-min candles)
CandleData(CandleData)
Candles real-time data (single candle)
Books(BooksData)
Books channel data (order book depth)
Aggregates(AggregatesData)
Aggregates channel data (comprehensive quote-like)
Indices(IndicesData)
Indices channel data
Unknown(Value)
Unknown channel, raw JSON preserved
Implementations§
Trait Implementations§
Source§impl Clone for ChannelData
impl Clone for ChannelData
Source§fn clone(&self) -> ChannelData
fn clone(&self) -> ChannelData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChannelData
impl RefUnwindSafe for ChannelData
impl Send for ChannelData
impl Sync for ChannelData
impl Unpin for ChannelData
impl UnsafeUnpin for ChannelData
impl UnwindSafe for ChannelData
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