FudDhtEvent

Type Alias FudDhtEvent 

Source
type FudDhtEvent = DhtEvent<<Fud as DhtHandler>::Node, <Fud as DhtHandler>::Value>;

Aliased Type§

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>,
    },
}

Variants§

§

BootstrapStarted

§

BootstrapCompleted

§

PingReceived

Fields

§from: Arc<Channel>
§result: Result<Hash, Error>
§

PingSent

Fields

§result: Result<(), Error>
§

ValueFound

Fields

§key: Hash
§

NodesFound

Fields

§key: Hash
§nodes: Vec<FudNode>
§

ValueLookupStarted

Fields

§key: Hash
§

NodesLookupStarted

Fields

§key: Hash
§

ValueLookupCompleted

Fields

§key: Hash
§nodes: Vec<FudNode>
§values: Vec<Vec<FudSeeder>>
§

NodesLookupCompleted

Fields

§key: Hash
§nodes: Vec<FudNode>