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.
Trait Implementations§
source§impl<'de> Deserialize<'de> for FlagSet
impl<'de> Deserialize<'de> for FlagSet
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>,
source§impl<'py> FromPyObject<'py> for FlagSet
impl<'py> FromPyObject<'py> for FlagSet
impl Copy for FlagSet
impl Eq for FlagSet
impl StructuralPartialEq for FlagSet
Auto Trait Implementations§
impl Freeze for FlagSet
impl RefUnwindSafe for FlagSet
impl Send for FlagSet
impl Sync for FlagSet
impl Unpin for FlagSet
impl UnwindSafe for FlagSet
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)