pub struct RunnerBookCache { /* private fields */ }Expand description
Runner book cache (used for market book Stream API caching)
Implementations§
Source§impl RunnerBookCache
impl RunnerBookCache
pub fn new_from_runner_change(runner_change: RunnerChange) -> Result<Self>
pub fn new_from_runner_definition( runner_definition: RunnerDefinition, ) -> Result<Self>
pub fn update_traded(&mut self, traded: &[UpdateSet2])
pub fn set_definition(&mut self, definition: RunnerDefinition)
pub const fn total_matched(&self) -> Option<Size>
pub const fn selection_id(&self) -> &SelectionId
pub fn set_last_price_traded(&mut self, last_price_traded: Price)
pub fn set_total_matched(&mut self, total_matched: Size)
pub const fn last_price_traded(&self) -> Option<&Price>
pub const fn traded(&self) -> &Available<UpdateSet2>
pub const fn available_to_back(&self) -> &Available<UpdateSet2>
pub const fn best_available_to_back(&self) -> &Available<UpdateSet3>
pub const fn best_display_available_to_back(&self) -> &Available<UpdateSet3>
pub const fn available_to_lay(&self) -> &Available<UpdateSet2>
pub const fn best_available_to_lay(&self) -> &Available<UpdateSet3>
pub const fn best_display_available_to_lay(&self) -> &Available<UpdateSet3>
pub const fn starting_price_back(&self) -> &Available<UpdateSet2>
pub const fn starting_price_lay(&self) -> &Available<UpdateSet2>
pub const fn starting_price_near(&self) -> Option<&Price>
pub const fn starting_price_far(&self) -> Option<&Price>
pub const fn handicap(&self) -> Option<F64Ord>
pub const fn definition(&self) -> Option<&RunnerDefinition>
Trait Implementations§
Source§impl Clone for RunnerBookCache
impl Clone for RunnerBookCache
Source§fn clone(&self) -> RunnerBookCache
fn clone(&self) -> RunnerBookCache
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 RunnerBookCache
impl Debug for RunnerBookCache
Source§impl<'de> Deserialize<'de> for RunnerBookCache
impl<'de> Deserialize<'de> for RunnerBookCache
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 PartialEq for RunnerBookCache
impl PartialEq for RunnerBookCache
Source§impl Serialize for RunnerBookCache
impl Serialize for RunnerBookCache
impl Eq for RunnerBookCache
impl StructuralPartialEq for RunnerBookCache
Auto Trait Implementations§
impl Freeze for RunnerBookCache
impl RefUnwindSafe for RunnerBookCache
impl Send for RunnerBookCache
impl Sync for RunnerBookCache
impl Unpin for RunnerBookCache
impl UnwindSafe for RunnerBookCache
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.