pub enum KademliaOut {
FindNodeResult {
key: PeerId,
closer_peers: Vec<PeerId>,
},
GetProvidersResult {
key: Multihash,
provider_peers: Vec<PeerId>,
closer_peers: Vec<PeerId>,
},
}
Output event of the Kademlia
behaviour.
Result of a FIND_NODE
iterative query.
Fields of FindNodeResult
The key that we looked for in the query.
List of peers ordered from closest to furthest away.
Result of a GET_PROVIDERS
iterative query.
Fields of GetProvidersResult
The key that we looked for in the query.
The peers that are providing the requested key.
List of peers ordered from closest to furthest away.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)