pub enum BarLifecycle {
Open(Bar),
Update(Bar),
Confirmed(Bar),
Correction(Bar),
}Expand description
A bar-lifecycle event for a single timestamp.
Variants§
Open(Bar)
The first tick of a new bar/timestamp.
Update(Bar)
A subsequent, still-unconfirmed tick for the same timestamp as the last Open/Update:
the bar is still forming and its values will be revised.
Confirmed(Bar)
The bar for this timestamp is final and will not be revised again.
Correction(Bar)
A feed correction to the most recently confirmed bar (e.g. an exchange restatement).
Only single-level undo is supported: correcting a bar older than the last confirmed one
is not representable by LifecycleRunner, which keeps just one pre/post checkpoint pair
and rejects such a correction with LifecycleError::CorrectionTimestampMismatch.
Implementations§
Trait Implementations§
Source§impl Clone for BarLifecycle
impl Clone for BarLifecycle
Source§fn clone(&self) -> BarLifecycle
fn clone(&self) -> BarLifecycle
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 BarLifecycle
impl Debug for BarLifecycle
Source§impl PartialEq for BarLifecycle
impl PartialEq for BarLifecycle
impl StructuralPartialEq for BarLifecycle
Auto Trait Implementations§
impl Freeze for BarLifecycle
impl RefUnwindSafe for BarLifecycle
impl Send for BarLifecycle
impl Sync for BarLifecycle
impl Unpin for BarLifecycle
impl UnsafeUnpin for BarLifecycle
impl UnwindSafe for BarLifecycle
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