Crate kitsune_p2p_types
source ·Expand description
Types subcrate for kitsune-p2p.
Re-exports
pub use kitsune_p2p_dht as dht;
pub use kitsune_p2p_dht_arc as dht_arc;
Modules
- Data structures to be stored in the agent/peer database.
- utility for lazy init-ing things
- Binary types, hashes, signatures, etc used by kitsune.
- Types for the bootstrap server
- Encoding / Decoding utilities.
- Combinator functions, for more easeful functional programming
- Kitsune Config Tuning Params
- 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.
- Re-exported dependencies.
- Utilities for helping with metric tracking.
- ReverseSemaphore allow waiting for all permits to be released.
- Task Aggregation helper utility
- TLS utils for kitsune
- Next-gen performance kitsune transport abstractions
Macros
- DSL-style macro for generating a serialization protocol message enum.
Structs
- Kitsune Backoff
- Error related to remote communication.
- Kitsune Timeout
- Wrapper around CertDigest that provides some additional debugging helpers.
Enums
- Item Type for auto_stream_select function.
- Error related to remote communication.
Traits
- Extension trait for working with CertDigests.
Functions
- Merge two sub-streams so they can be polled in parallel, but still know when each individually ends, unlike futures::stream::select()
- Helper function for the common case of returning this boxed future type.
- Helper function for the common case of returning this boxed future type.
- 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.
- Get the elapsed process count duration from a captured
ProcCount
to now. If the duration would be negative, this fn returns a zero Duration. - Helper function for the common case of returning this nested Unit type.
Type Aliases
- 32 byte binary TLS certificate digest.
- KitsuneAgent in an Arc
- KitsuneBasis in an Arc
- KitsuneOpData in an Arc
- KitsuneOpHash in an Arc
- KitsuneSpace in an Arc
- Result type for remote communication.
- Typedef for result of
proc_count_now()
. This value is on the scale of microseconds.