SeqBarrier

Trait SeqBarrier 

Source
pub trait SeqBarrier {
    // Required method
    fn available(&self) -> Seq;

    // Provided method
    fn wait_for<W: WaitStrategy>(&self, seq: Seq, wait: &mut W) -> Seq { ... }
}
Expand description

Passive barrier that reports the latest available sequence.

Backings provide concrete barriers (e.g. cursor barrier, gating barrier). Executors use barriers to impose Disruptor-style ordering between stages.

Required Methods§

Source

fn available(&self) -> Seq

Return the currently-available sequence.

Provided Methods§

Source

fn wait_for<W: WaitStrategy>(&self, seq: Seq, wait: &mut W) -> Seq

Wait until available() >= seq using the provided WaitStrategy.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§