pub struct DataQualityFlags(/* private fields */);Expand description
Bitset wrapper for feed-quality flags.
Implementations§
Source§impl DataQualityFlags
impl DataQualityFlags
Sourcepub const STALE_FEED: Self
pub const STALE_FEED: Self
Feed is stale beyond policy threshold.
Sourcepub const SEQUENCE_GAP: Self
pub const SEQUENCE_GAP: Self
A sequence number gap was detected.
Sourcepub const CLOCK_SKEW: Self
pub const CLOCK_SKEW: Self
Clock skew detected between source and consumer.
Sourcepub const DEPTH_TRUNCATED: Self
pub const DEPTH_TRUNCATED: Self
Book depth was truncated.
Sourcepub const OUT_OF_ORDER: Self
pub const OUT_OF_ORDER: Self
Event arrived out-of-order.
Sourcepub const ADAPTER_DEGRADED: Self
pub const ADAPTER_DEGRADED: Self
Adapter/external feed is degraded or reconnecting.
Sourcepub fn from_bits_truncate(bits: u32) -> Self
pub fn from_bits_truncate(bits: u32) -> Self
Builds flags from raw bits, preserving unknown bits.
Sourcepub fn intersects(self, other: Self) -> bool
pub fn intersects(self, other: Self) -> bool
Returns true when any flag in other is set in self.
Trait Implementations§
Source§impl BitOr for DataQualityFlags
impl BitOr for DataQualityFlags
Source§impl Clone for DataQualityFlags
impl Clone for DataQualityFlags
Source§fn clone(&self) -> DataQualityFlags
fn clone(&self) -> DataQualityFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataQualityFlags
impl Debug for DataQualityFlags
Source§impl Hash for DataQualityFlags
impl Hash for DataQualityFlags
Source§impl PartialEq for DataQualityFlags
impl PartialEq for DataQualityFlags
Source§fn eq(&self, other: &DataQualityFlags) -> bool
fn eq(&self, other: &DataQualityFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DataQualityFlags
impl Eq for DataQualityFlags
impl StructuralPartialEq for DataQualityFlags
Auto Trait Implementations§
impl Freeze for DataQualityFlags
impl RefUnwindSafe for DataQualityFlags
impl Send for DataQualityFlags
impl Sync for DataQualityFlags
impl Unpin for DataQualityFlags
impl UnsafeUnpin for DataQualityFlags
impl UnwindSafe for DataQualityFlags
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