Expand description
§tor-basic-utils
Utilities (low-level) for Tor
Miscellaneous utilities for tor-* and arti-*.
This crate lives at the bottom of the Tor crate stack.
So it contains only utilities which have no tor-* (or arti-*) dependencies.
There is no particular theme.
More substantial sets of functionality with particular themes
are to be found in other tor-* crates.
License: MIT OR Apache-2.0
Modules§
- iter
- Iterator helpers for Arti.
- n_
key_ list - Declaration for an n-keyed list type, allowing access to each of its members by each of N different keys.
- n_
key_ set - Declaration for an n-keyed set type, allowing access to each of its members by each of N different keys.
- rangebounds
- This module exposes helpers for working with types that implement
RangeBounds. - retry
- An implementation of the “decorrelated jitter” algorithm for scheduling retries.
- test_
rng - Code for deterministic and/or reproducible use of PRNGs in tests.
Macros§
- define_
accessor_ trait - Define an “accessor trait”, which describes structs that have fields of certain types
- derive_
serde_ raw - Helper for defining a struct which can be (de)serialized several ways, including “natively”
- impl_
debug_ hex - Define
Debugto print as hex - macro_
first_ nonempty - Helper for assisting with macro “argument” defaulting
- n_
key_ list - Declare a structure that can hold elements with multiple unique keys.
- n_
key_ set - Declare a structure that can hold elements with multiple unique keys.
- paste
Structs§
- ByteQty
- Quantity of memory used, measured in bytes.
Traits§
- Binary
Heap Ext - Implementation of
BinaryHeap::retainthat doesn’t require Nightly - GenRange
Infallible - Types that can be infallibly sampled using
gen_range_infallible - IoError
Ext - Implementation of
ErrorKind::NotADirectorythat doesn’t require Nightly - PathExt
- Renaming of
Path::displayasdisplay_lossy - RngExt
- Extension trait to provide
.gen_range_checked() - StrExt
- Extension trait to provide
.strip_suffix_ignore_ascii_case()etc.