pub struct LevelEntries { /* private fields */ }Expand description
Shared order tracking for a level
Stores the time-priority queue of order entries and the number of active orders.
Note that order_count may differ from queue.len() due to deferred cleanup of stale entries.
Implementations§
Source§impl LevelEntries
impl LevelEntries
Sourcepub fn order_count(&self) -> u64
pub fn order_count(&self) -> u64
Get the number of orders at this level
Sourcepub fn queue(&self) -> &VecDeque<QueueEntry>
pub fn queue(&self) -> &VecDeque<QueueEntry>
Get the time priority queue of this price level
Trait Implementations§
Source§impl Clone for LevelEntries
impl Clone for LevelEntries
Source§fn clone(&self) -> LevelEntries
fn clone(&self) -> LevelEntries
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 LevelEntries
impl Debug for LevelEntries
Source§impl Default for LevelEntries
impl Default for LevelEntries
Source§fn default() -> LevelEntries
fn default() -> LevelEntries
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LevelEntries
impl<'de> Deserialize<'de> for LevelEntries
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
Auto Trait Implementations§
impl Freeze for LevelEntries
impl RefUnwindSafe for LevelEntries
impl Send for LevelEntries
impl Sync for LevelEntries
impl Unpin for LevelEntries
impl UnsafeUnpin for LevelEntries
impl UnwindSafe for LevelEntries
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