pub trait NetworkDHTProvider {
    // Required methods
    fn get_value(&self, key: &Key);
    fn put_value(&self, key: Key, value: Vec<u8, Global>);
}
Expand description

Provides access to the networking DHT.

Required Methods§

source

fn get_value(&self, key: &Key)

Start getting a value from the DHT.

source

fn put_value(&self, key: Key, value: Vec<u8, Global>)

Start putting a value in the DHT.

Implementations on Foreign Types§

source§

impl<T> NetworkDHTProvider for Arc<T>where T: NetworkDHTProvider + ?Sized,

source§

fn get_value(&self, key: &Key)

source§

fn put_value(&self, key: Key, value: Vec<u8, Global>)

Implementors§

source§

impl<B, H> NetworkDHTProvider for NetworkService<B, H>where B: BlockT + 'static, H: ExHashT,