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

Provides access to the networking DHT.

Required Methods§

source

fn get_value(&self, key: &KademliaKey)

Start getting a value from the DHT.

source

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

Start putting a value in the DHT.

Implementations on Foreign Types§

source§

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

source§

fn get_value(&self, key: &KademliaKey)

source§

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

Implementors§