Skip to main content

SynchronizerFactory

Trait SynchronizerFactory 

Source
pub trait SynchronizerFactory: Send + Sync {
    // Required method
    fn create(&self) -> Box<dyn Synchronizer>;

    // Provided method
    fn is_fdv1_fallback(&self) -> bool { ... }
}
Expand description

Produces a fresh synchronizer each time the orchestrator starts a run.

Required Methods§

Source

fn create(&self) -> Box<dyn Synchronizer>

Builds a new synchronizer instance.

Provided Methods§

Source

fn is_fdv1_fallback(&self) -> bool

Whether this factory builds the FDv1 fallback synchronizer.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§