Crate kitsune_p2p_fetch

Crate kitsune_p2p_fetch 

Source
Expand description

Kitsune P2p Fetch Queue Logic

Structs§

FetchContext
Usage agnostic context data.
FetchPool
A FetchPool tracks a set of FetchKeys (op hashes) to be fetched, each of which can have multiple sources associated with it.
FetchPoolItem
An item in the queue, corresponding to a single op or region to fetch
FetchPoolPush
A fetch “unit” that can be de-duplicated.
FetchPoolReader
Read-only access to the queue
FetchResponseGuard
Drop this when response sending is complete.
FetchResponseQueue
Manage responding to requests for data.
PendingItemResponse
Tracks the source and when a request was made for a FetchPoolItem. This is used to track timeouts for sources that don’t respond before the configured timeout.
RoughInt
Roughly track an approximate integer value.
RoughSized
Some data which has a RoughInt assigned for its size

Enums§

FetchKey
Determine what should be fetched.
FetchSource
A source to fetch from: either a node, or an agent on a node
TransferMethod
The possible methods of transferring op hashes

Traits§

FetchPoolConfig
Host-defined details about how the fetch queue should function
FetchResponseConfig
Customization by code making use of the FetchResponseQueue.

Type Aliases§

FetchConfig
Alias
OpHashSized
An op hash combined with an approximate size of the op