Enum Pending
#[non_exhaustive]pub enum Pending {
Unknown,
Exactly(usize),
AtLeast(usize),
}Expand description
How many local events sit above the confirmed watermark.
A step reads at most one batch past the watermark, plus one event, rather than the whole unconfirmed tail: reading the tail on every step costs O(N²/B) over a backlog of N in batches of B, and on a one-shot-HTTP store it puts the whole tail in one response. So a long backlog is reported as a lower bound. Spelled as an enum, not a count beside a flag, so a reader cannot take a bound for an exact figure.
#[non_exhaustive], so an exact count a store can supply cheaply (a
count(*)) can be told apart later without breaking a match.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
Not counted yet: no step has read the local log.
Exactly(usize)
Exactly this many: the last read reached the end of the local log.
AtLeast(usize)
At least this many: the last read stopped at its limit with more to come.