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