#[non_exhaustive]pub struct FeedState {
pub status: Option<FeedStatus>,
pub symbol_catalog_revision: u64,
pub loading_history: bool,
pub history_complete: bool,
pub trade_history_complete: bool,
pub depth_history_complete: bool,
pub last_error: Option<FeedError>,
pub rejected_bars: u64,
pub late_ticks: u64,
pub repeated_ticks: u64,
pub rejected_depth: u64,
}Expand description
What the chart knows about one series’ feed, for the application to show or log.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: Option<FeedStatus>Last status pushed by the feed. None without a live subscription.
symbol_catalog_revision: u64Catalog-change notifications received for this subscription, for host search refreshes.
loading_history: boolWhether a historical page is currently being requested.
history_complete: boolWhether the feed has reported that no older history remains.
trade_history_complete: boolWhether no older trades remain to be loaded: the feed reported the end, answered nothing new, does not offer trades or the trade store is full.
depth_history_complete: boolWhether no older depth columns remain to be loaded.
last_error: Option<FeedError>Most recent feed error, when present.
rejected_bars: u64Bars and ticks dropped by validation: non-finite values, a high or low on the wrong side of
the open and close, negative volume, a tick or history bar that would overflow its slot’s
volume, a time too far ahead of the feed’s clock (see Sink::set_server_time), or pending
bar slots evicted after overflow (also reported in last_error).
late_ticks: u64Trades older than the last accepted execution or forming bar, dropped.
repeated_ticks: u64Trades whose id is among those of the last trades the subscription folded, as many as its trade store holds, dropped: a feed replaying its last trades after a reconnect.
rejected_depth: u64Order book snapshots and deltas dropped by validation: a non-finite price or size, a negative size. Each one clears the book until the feed pushes a new snapshot.
Trait Implementations§
impl StructuralPartialEq for FeedState
Auto Trait Implementations§
impl Freeze for FeedState
impl RefUnwindSafe for FeedState
impl Send for FeedState
impl Sync for FeedState
impl Unpin for FeedState
impl UnsafeUnpin for FeedState
impl UnwindSafe for FeedState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more