pub struct LiveOrderState {
pub slot: u32,
pub generation: u32,
pub order_id: OrderId,
pub participant: ParticipantId,
pub price_idx: u32,
pub qty: u64,
pub side: Side,
pub prev: u32,
pub next: u32,
}Expand description
Structural state of one live order, as persisted in a snapshot (ARCHITECTURE.md section 10.2, live slot records).
Slot indices and links are raw u32 arena indices; prev and
next are u32::MAX (the arena NIL) at the ends of a level list.
Fields§
§slot: u32Arena slot the order occupies.
generation: u32Generation of the slot at capture time.
order_id: OrderIdThe order’s caller-supplied id.
participant: ParticipantIdThe order’s owner.
price_idx: u32Dense tick index of the order’s price level.
qty: u64Remaining quantity.
side: SideWhich side the order rests on.
prev: u32Previous slot in the level list, or NIL.
next: u32Next slot in the level list, or NIL.
Trait Implementations§
Source§impl Clone for LiveOrderState
impl Clone for LiveOrderState
impl Copy for LiveOrderState
Source§impl Debug for LiveOrderState
impl Debug for LiveOrderState
impl Eq for LiveOrderState
Source§impl PartialEq for LiveOrderState
impl PartialEq for LiveOrderState
impl StructuralPartialEq for LiveOrderState
Auto Trait Implementations§
impl Forget for LiveOrderState
impl Freeze for LiveOrderState
impl Move for LiveOrderState
impl RefUnwindSafe for LiveOrderState
impl Send for LiveOrderState
impl Sync for LiveOrderState
impl Unpin for LiveOrderState
impl UnsafeUnpin for LiveOrderState
impl UnwindSafe for LiveOrderState
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