Type Alias FudDhtEvent
Source type FudDhtEvent = DhtEvent<<Fud as DhtHandler>::Node, <Fud as DhtHandler>::Value>;
enum FudDhtEvent {
BootstrapStarted,
BootstrapCompleted,
PingReceived {
from: Arc<Channel>,
result: Result<Hash, Error>,
},
PingSent {
to: Arc<Channel>,
result: Result<(), Error>,
},
ValueFound {
key: Hash,
value: Vec<FudSeeder>,
},
NodesFound {
key: Hash,
nodes: Vec<FudNode>,
},
ValueLookupStarted {
key: Hash,
},
NodesLookupStarted {
key: Hash,
},
ValueLookupCompleted {
key: Hash,
nodes: Vec<FudNode>,
values: Vec<Vec<FudSeeder>>,
},
NodesLookupCompleted {
key: Hash,
nodes: Vec<FudNode>,
},
}