Skip to main content

RevisionWaiter

Trait RevisionWaiter 

Source
pub trait RevisionWaiter {
    // Required method
    fn wait_for_revisions(
        &mut self,
        after_sequence: u64,
        limit: u32,
        timeout: Duration,
    ) -> Result<RevisionWaitOutcome>;
}
Expand description

Bounded blocking wait for revisions committed after a sequence.

Implementations observe commits from the same process and from other processes sharing the production. Closed and cancelled outcomes are terminal for the waiter.

Required Methods§

Source

fn wait_for_revisions( &mut self, after_sequence: u64, limit: u32, timeout: Duration, ) -> Result<RevisionWaitOutcome>

Waits until at least one revision after after_sequence exists, then returns up to limit of them in ascending order.

A zero timeout checks once without blocking.

§Errors

Returns ErrorKind::InvalidArgument when limit is zero or exceeds MAX_REVISION_PAGE_SIZE, or when timeout exceeds MAX_REVISION_WAIT; storage errors are returned unchanged.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§