pub struct FlagSet { /* private fields */ }Expand description
A transparent wrapper around the bit field used in several DBN record types,
namely MboMsg and record types derived from it.
Implementations§
Source§impl FlagSet
impl FlagSet
Sourcepub const fn is_last(&self) -> bool
pub const fn is_last(&self) -> bool
Returns true if it’s the last record in the event from the venue for a given
instrument_id.
Sourcepub fn set_last(&mut self) -> Self
pub fn set_last(&mut self) -> Self
Sets the LAST bit flag to true to indicate this is the last record in the
event for a given instrument.
Sourcepub const fn is_tob(&self) -> bool
pub const fn is_tob(&self) -> bool
Returns true if it’s a top-of-book record, not an individual order.
Sourcepub fn set_tob(&mut self) -> Self
pub fn set_tob(&mut self) -> Self
Sets the TOB bit flag to true to indicate this is a top-of-book record.
Sourcepub const fn is_snapshot(&self) -> bool
pub const fn is_snapshot(&self) -> bool
Returns true if this record was sourced from a replay, such as a snapshot
server.
Sourcepub fn set_snapshot(&mut self) -> Self
pub fn set_snapshot(&mut self) -> Self
Sets the SNAPSHOT bit flag to true to indicate this record was sourced from
a replay.
Sourcepub const fn is_mbp(&self) -> bool
pub const fn is_mbp(&self) -> bool
Returns true if this record is an aggregated price level record, not an
individual order.
Sourcepub fn set_mbp(&mut self) -> Self
pub fn set_mbp(&mut self) -> Self
Sets the MBP bit flag to true to indicate this record is an aggregated price
level record.
Sourcepub const fn is_bad_ts_recv(&self) -> bool
pub const fn is_bad_ts_recv(&self) -> bool
Returns true if this record has an inaccurate ts_recv value due to clock
issues or packet reordering.
Sourcepub fn set_bad_ts_recv(&mut self) -> Self
pub fn set_bad_ts_recv(&mut self) -> Self
Sets the BAD_TS_RECV bit flag to true to indicate this record has an
inaccurate ts_recv value.
Sourcepub const fn is_maybe_bad_book(&self) -> bool
pub const fn is_maybe_bad_book(&self) -> bool
Returns true if this record is from a channel where an unrecoverable gap was
detected.
Sourcepub fn set_maybe_bad_book(&mut self) -> Self
pub fn set_maybe_bad_book(&mut self) -> Self
Sets the MAYBE_BAD_BOOK bit flag to true to indicate this record is from a
channel where an unrecoverable gap was detected.