Skip to main content

InFlightItem

Trait InFlightItem 

Source
pub trait InFlightItem {
    // Required methods
    fn recognition(&self) -> Recognition;
    fn on_boundary(&mut self, boundary: Boundary) -> Disposition;
}
Expand description

An item that can be held in flight by a ledger.

The per-frame accumulation logic stays in the owning calculator (its inputs are calculator-specific); the trait only covers what a ledger must do uniformly: expose a Recognition for latent queries, and decide how to respond when a Boundary forces resolution.

Required Methods§

Source

fn recognition(&self) -> Recognition

Source

fn on_boundary(&mut self, boundary: Boundary) -> Disposition

How this item responds to boundary. Committed items that have earned an event typically return Finalize(FinalizeReason::Boundary(boundary)); speculative candidates that have not yet earned one typically Discard.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§