Trait tc_authority_discovery::NetworkProvider [−][src]
NetworkProvider provides Worker
with all necessary hooks into the
underlying Tetcore networking. Using this trait abstraction instead of
tc_network::NetworkService
directly is necessary to unit test Worker
.
Required methods
fn put_value(&self, key: Key, value: Vec<u8>)
[src]
Start putting a value in the Dht.
fn get_value(&self, key: &Key)
[src]
Start getting a value from the Dht.
Implementations on Foreign Types
impl<B, H> NetworkProvider for NetworkService<B, H> where
B: BlockT + 'static,
H: ExHashT,
[src]
Loading content...B: BlockT + 'static,
H: ExHashT,