pub struct StreamState {
pub stream_id: Option<u64>,
pub update_clk: Option<Clock>,
pub max_latency_ms: Option<u64>,
pub unique_id: Option<i32>,
pub initial_clock: Option<InitialClock>,
pub time_created: DateTime<Utc>,
pub time_updated: DateTime<Utc>,
pub market_stream_tracker: MarketStreamTracker,
pub order_stream_tracker: OrderStreamTracker,
}Expand description
Separate stream struct to hold market/order caches
Fields§
§stream_id: Option<u64>§update_clk: Option<Clock>§max_latency_ms: Option<u64>§unique_id: Option<i32>§initial_clock: Option<InitialClock>§time_created: DateTime<Utc>§time_updated: DateTime<Utc>§market_stream_tracker: MarketStreamTracker§order_stream_tracker: OrderStreamTrackerImplementations§
Source§impl StreamState
impl StreamState
pub fn new() -> Self
pub fn order_change_update( &mut self, msg: OrderChangeMessage, ) -> Option<Vec<&OrderBookCache>>
pub fn market_change_update( &mut self, msg: MarketChangeMessage, ) -> Option<Vec<&MarketBookCache>>
Trait Implementations§
Source§impl Clone for StreamState
impl Clone for StreamState
Source§fn clone(&self) -> StreamState
fn clone(&self) -> StreamState
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 StreamState
impl Debug for StreamState
Auto Trait Implementations§
impl Freeze for StreamState
impl RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl UnwindSafe for StreamState
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