pub trait Accountable {
// Required method
fn record_count(&self) -> i64;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
An type containing a number of records accounted for by progress tracking.
The object stores a number of updates and thus is able to describe it count
(update_count()
) and whether it is empty (is_empty()
). It is empty if the
update count is zero.
Required Methods§
Sourcefn record_count(&self) -> i64
fn record_count(&self) -> i64
The number of records
This number is used in progress tracking to confirm the receipt of some number
of outstanding records, and it is highly load bearing. The main restriction is
imposed on the LengthPreservingContainerBuilder
trait, whose implementors
must preserve the number of records.