Trait ThreadSafeChain

Source
pub trait ThreadSafeChain:
    ChainBackend
    + Sync
    + Send
    + 'static { }
Expand description

ThreadSafeChain is a trait alias for the BlockchainInterface, UpdatableChainstate, Sync and Send combo and has a static lifetime. It is meant to be used to specify thread-safe blockchain backends.

Useful to avoid code verbosity.

Implementors§

Source§

impl<T: ChainBackend + Sync + Send + 'static> ThreadSafeChain for T