struct AdvanceTables<T> {
    batch_size: usize,
    set: HashSet<GlobalId>,
    work: VecDeque<GlobalId>,
    advance_to: T,
}
Expand description

Holds tables needing advancement.

Fields

batch_size: usize

The current number of tables to advance in a single batch.

set: HashSet<GlobalId>

The set of tables to advance.

work: VecDeque<GlobalId>

An ordered set of work to ensure fairness. Elements may be duplicated here, so there’s no guarantee that there is a corresponding element in set.

advance_to: T

Timestamp at which to advance the tables.

Implementations

Returns the set of tables to advance. Blocks forever if there are none.

This method is cancel-safe because there are no await points when the set is non-empty.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more