pub struct PegLevel { /* private fields */ }Expand description
Peg level that manages the status of the orders with the same peg reference. It does not store the orders themselves, but only the time priority information of the orders.
Implementations§
Source§impl PegLevel
impl PegLevel
Sourcepub fn repriced_at(&self) -> SequenceNumber
pub fn repriced_at(&self) -> SequenceNumber
Get the sequence number at which the peg level was last repriced
Sourcepub fn order_count(&self) -> u64
pub fn order_count(&self) -> u64
Get the number of orders at this peg level
Sourcepub fn queue(&self) -> &VecDeque<QueueEntry>
pub fn queue(&self) -> &VecDeque<QueueEntry>
Get the time priority queue of this peg level
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PegLevel
impl<'de> Deserialize<'de> for PegLevel
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 PegLevel
impl RefUnwindSafe for PegLevel
impl Send for PegLevel
impl Sync for PegLevel
impl Unpin for PegLevel
impl UnsafeUnpin for PegLevel
impl UnwindSafe for PegLevel
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