TestableSequencerDataSource

Trait TestableSequencerDataSource 

Source
pub trait TestableSequencerDataSource: SequencerDataSource {
    type Storage: Sync;

    // Required methods
    fn create_storage<'async_trait>(    ) -> Pin<Box<dyn Future<Output = Self::Storage> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn persistence_options(storage: &Self::Storage) -> Self::Options;
    fn options(storage: &Self::Storage, opt: Options) -> Options;

    // Provided method
    fn leaf_only_ds_options(
        _storage: &Self::Storage,
        _opt: Options,
    ) -> Result<Options> { ... }
}

Required Associated Types§

Required Methods§

Source

fn create_storage<'async_trait>() -> Pin<Box<dyn Future<Output = Self::Storage> + Send + 'async_trait>>
where Self: 'async_trait,

Source

fn persistence_options(storage: &Self::Storage) -> Self::Options

Source

fn options(storage: &Self::Storage, opt: Options) -> Options

Provided Methods§

Source

fn leaf_only_ds_options( _storage: &Self::Storage, _opt: Options, ) -> Result<Options>

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§