pub enum DHTQuery {
FindNode {
key: Key,
requester: PeerId,
},
FindValue {
key: Key,
requester: PeerId,
},
Store {
record: Record,
requester: PeerId,
},
Ping {
requester: PeerId,
},
}
Expand description
DHT query types
Variants§
FindNode
Find nodes close to a key
FindValue
Find value for a key
Store
Store a record
Ping
Ping to check node availability
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DHTQuery
impl<'de> Deserialize<'de> for DHTQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DHTQuery
impl RefUnwindSafe for DHTQuery
impl Send for DHTQuery
impl Sync for DHTQuery
impl Unpin for DHTQuery
impl UnwindSafe for DHTQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more