FullNetwork

Trait FullNetwork 

Source
pub trait FullNetwork:
    BlockDownloaderProvider<Client: BlockClient<Block = <Self::Primitives as NetworkPrimitives>::Block>>
    + NetworkSyncUpdater
    + NetworkInfo
    + NetworkEventListenerProvider
    + Peers
    + PeersHandleProvider
    + Clone
    + Unpin
    + 'static { }
Expand description

Helper trait that unifies network API needed to launch node.

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<T> FullNetwork for T
where T: BlockDownloaderProvider<Client: BlockClient<Block = <Self::Primitives as NetworkPrimitives>::Block>> + NetworkSyncUpdater + NetworkInfo + NetworkEventListenerProvider + Peers + PeersHandleProvider + Clone + Unpin + 'static,