#[repr(C)]pub struct Fill {
pub order_id: u64,
pub px_1e9: u64,
pub qty_1e8: i64,
pub recv_ns: u64,
pub side: i8,
pub _pad: [u8; 7],
}Fields§
§order_id: u64§px_1e9: u64§qty_1e8: i64§recv_ns: u64§side: i8§_pad: [u8; 7]Implementations§
Source§impl Fill
impl Fill
Sourcepub fn since_ns(&self, start_ns: u64) -> u64
pub fn since_ns(&self, start_ns: u64) -> u64
Elapsed time since a caller-provided start timestamp.
Typical use: fill.since_ms(start_ns) where start_ns came from book.recv_ns.
pub fn since_us(&self, start_ns: u64) -> u64
pub fn since_ms(&self, start_ns: u64) -> u64
Sourcepub fn symbol_id(&self) -> u16
pub fn symbol_id(&self) -> u16
Symbol identifier (v0.4+). 0 = single-symbol or unset. In multi-symbol backtests, matches L2Book.symbol_id. Stored in _pad[0..2] as little-endian u16 for ABI backward compat.
Sourcepub fn set_symbol_id(&mut self, id: u16)
pub fn set_symbol_id(&mut self, id: u16)
Set symbol identifier. Used by sim-engine orchestrator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnsafeUnpin for Fill
impl UnwindSafe for Fill
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