referrerpolicy=no-referrer-when-downgrade
sc_consensus_grandpa

Trait ClientForGrandpa

Source
pub trait ClientForGrandpa<Block, BE>:
    LockImportRun<Block, BE>
    + Finalizer<Block, BE>
    + AuxStore
    + HeaderMetadata<Block, Error = Error>
    + HeaderBackend<Block>
    + BlockchainEvents<Block>
    + ProvideRuntimeApi<Block>
    + ExecutorProvider<Block>
    + BlockImport<Block, Error = Error>
    + StorageProvider<Block, BE>
where BE: Backend<Block>, Block: BlockT,
{ }
Expand description

A trait that includes all the client functionalities grandpa requires. Ideally this would be a trait alias, we’re not there yet. tracking issue https://github.com/rust-lang/rust/issues/41517

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§

Source§

impl<Block, BE, T> ClientForGrandpa<Block, BE> for T
where BE: Backend<Block>, Block: BlockT, T: LockImportRun<Block, BE> + Finalizer<Block, BE> + AuxStore + HeaderMetadata<Block, Error = Error> + HeaderBackend<Block> + BlockchainEvents<Block> + ProvideRuntimeApi<Block> + ExecutorProvider<Block> + BlockImport<Block, Error = Error> + StorageProvider<Block, BE>,