Crate kitsune_p2p_fetch
source ·Expand description
Kitsune P2p Fetch Queue Logic
Structs§
- Usage agnostic context data.
- A FetchPool tracks a set of
FetchKey
s (op hashes) to be fetched, each of which can have multiple sources associated with it. - An item in the queue, corresponding to a single op or region to fetch
- A fetch “unit” that can be de-duplicated.
- Read-only access to the queue
- Drop this when response sending is complete.
- Manage responding to requests for data.
- 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. - Roughly track an approximate integer value.
- Some data which has a RoughInt assigned for its size
Enums§
- Determine what should be fetched.
- A source to fetch from: either a node, or an agent on a node
- The possible methods of transferring op hashes
Traits§
- Host-defined details about how the fetch queue should function
- Customization by code making use of the FetchResponseQueue.
Type Aliases§
- Alias
- An op hash combined with an approximate size of the op