Expand description
Types subcrate for kitsune-p2p.
Re-exports§
pub use kitsune_p2p_bin_data as bin_types;
pub use kitsune_p2p_dht as dht;
pub use kitsune_p2p_dht_arc as dht_arc;
Modules§
- agent_
info - Data structures to be stored in the agent/peer database.
- async_
lazy - utility for lazy init-ing things
- bootstrap
- Types for the bootstrap server
- codec
- Encoding / Decoding utilities.
- combinators
- Combinator functions, for more easeful functional programming
- config
- Kitsune Config Tuning Params
- consistency
- Types used for consistency checking during tests or dht health checks. These types describe a protocol that can be implemented to gather statistics on data consistency. This is a first prototype so expect this to change.
- dependencies
- Re-exported dependencies.
- fetch_
pool - Fetch queue types
- metrics
- Utilities for helping with metric tracking.
- task_
agg - Task Aggregation helper utility
- tls
- TLS utils for kitsune
- tx2
- Next-gen performance kitsune transport abstractions
Macros§
- write_
codec_ enum - DSL-style macro for generating a serialization protocol message enum.
Structs§
- Kitsune
Backoff - Kitsune Backoff
- Kitsune
Error - Error related to remote communication.
- Kitsune
Timeout - Kitsune Timeout
- Tx2Cert
- Wrapper around CertDigest that provides some additional debugging helpers.
Enums§
- Kitsune
Error Kind - Error related to remote communication.
Traits§
- Cert
Digest Ext - Extension trait for working with CertDigests.
Functions§
- box_fut
- Helper function for the common case of returning this boxed future type.
- box_
fut_ plain - Helper function for the common case of returning this boxed future type.
- ok_fut
- Helper function for the common case of returning this boxed future type.
- proc_
count_ now_ us - Monotonically nondecreasing process tick count, backed by tokio::time::Instant as an i64 to facilitate reference times that may be less than the first call to this function. The returned value is on the scale of microseconds.
- proc_
count_ us_ elapsed - Get the elapsed process count duration from a captured
ProcCount
to now. If the duration would be negative, this fn returns a zero Duration. - unit_
ok_ fut - Helper function for the common case of returning this nested Unit type.
Type Aliases§
- Cert
Digest - 32 byte binary TLS certificate digest.
- KAgent
- KitsuneAgent in an Arc
- KBasis
- KitsuneBasis in an Arc
- KOpData
- KitsuneOpData in an Arc
- KOpHash
- KitsuneOpHash in an Arc
- KSpace
- KitsuneSpace in an Arc
- Kitsune
Result - Result type for remote communication.
- Proc
Count Micros - Typedef for result of
proc_count_now()
. This value is on the scale of microseconds.