Trait BackendFromConfigAndSyncState

Source
pub trait BackendFromConfigAndSyncState: Sized {
    type C;
    type S;
    type R: Future<Output = Result<Self, Error>> + Send;

    // Required method
    fn from_config_and_syncstate(
        config: Self::C,
        sync_state: Self::S,
    ) -> Self::R;
}

Required Associated Types§

Source

type C

Source

type S

Source

type R: Future<Output = Result<Self, Error>> + Send

Required Methods§

Source

fn from_config_and_syncstate(config: Self::C, sync_state: Self::S) -> Self::R

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§