pub enum CachedMessage {
Connection(ConnectionMessage),
MarketChange(Vec<MarketBookCache>),
OrderChange(Vec<OrderBookCache>),
Status(StatusMessage),
}Expand description
Variants of messages produced by the cache-based processor.
CachedMessage represents high-level events derived from raw Betfair streaming responses,
enriched with internal cache state for market and order books.
Variants§
Connection(ConnectionMessage)
A connection handshake message received from the stream, containing connection ID and related metadata. Also returned on heartbeat messages.
MarketChange(Vec<MarketBookCache>)
A batch of market book updates, each describing the current state or changes of a market.
OrderChange(Vec<OrderBookCache>)
A batch of order book updates, representing new orders, matched orders, and cancellations in the order cache.
Status(StatusMessage)
A status message from the stream, used for heartbeats, subscription confirmations, or error notifications.
Trait Implementations§
Source§impl Clone for CachedMessage
impl Clone for CachedMessage
Source§fn clone(&self) -> CachedMessage
fn clone(&self) -> CachedMessage
Returns a copy 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 CachedMessage
impl Debug for CachedMessage
Source§impl PartialEq for CachedMessage
impl PartialEq for CachedMessage
impl Eq for CachedMessage
impl StructuralPartialEq for CachedMessage
Auto Trait Implementations§
impl Freeze for CachedMessage
impl RefUnwindSafe for CachedMessage
impl Send for CachedMessage
impl Sync for CachedMessage
impl Unpin for CachedMessage
impl UnwindSafe for CachedMessage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.