Trait sc_network::NetworkDHTProvider
source · 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§
sourcefn get_value(&self, key: &KademliaKey)
fn get_value(&self, key: &KademliaKey)
Start getting a value from the DHT.
sourcefn put_value(&self, key: KademliaKey, value: Vec<u8>)
fn put_value(&self, key: KademliaKey, value: Vec<u8>)
Start putting a value in the DHT.