Trait dkg_gadget::Client

source ·
pub trait Client<B, BE>: BlockchainEvents<B> + HeaderBackend<B> + ProvideRuntimeApi<B> + Send + Syncwhere
    B: Block,
    BE: Backend<B>,{ }
Expand description

A convenience DKG client trait that defines all the type bounds a DKG client has to satisfy. Ideally that should actually be a trait alias. Unfortunately as of today, Rust does not allow a type alias to be used as a trait bound. Tracking issue is https://github.com/rust-lang/rust/issues/41517.

Implementors§

source§

impl<B, BE, T> Client<B, BE> for Twhere B: Block, BE: Backend<B>, T: BlockchainEvents<B> + HeaderBackend<B> + ProvideRuntimeApi<B> + Send + Sync,