Re-exports§
pub use self::enumkind::Enum;
Modules§
Macros§
- anyhow
- Construct an ad-hoc error from a string or existing non-
anyhowerror value. - assert_
impl - error_
consistency - Construct
Error::Consistency. - error_
fetch - Construct
Error::Fetch. - error_
operation - Construct
Error::Operation. - error_
parse - Construct
Error::Parse.
Structs§
- Address
- Address within a
PointInput. - Hash
- Valid [
Hash]. Has restrictions on its byte layout (e.g. cannot be all zeroes); - Inline
Extra - Parses
Extra, then provides it toT’s parser. - Input
- Niche
ForUnsized - Special
Nicheto force use of a tag without any padding. - NoNiche
- [
MaybeNiche] asserting thatVis a fake niche. - Object
Hashes - Object
Marker - OneNiche
- Niche filled with
0xFFbytes. - Optional
Hash Option<Hash>but more explicitly represented as[u8; HASH_SIZE].- Refless
Input - Some
Niche - [
MaybeNiche] asserting thatTis a true niche. - Tags
- Zero
Niche - Niche filled with
0x00bytes. - Zero
NoNiche - Already occupied/unusable byte representation filled with
0x00bytes.
Enums§
- Error
- Errors encountered during fetching an object. Mostly related to parsing.
Constants§
- HASH_
SIZE - SHA-256 hash size in bytes.
Traits§
- AsAny
- Trait for contextually using
Any. Can itself be implemented for non-'staticand?Sizedtypes, and isdyn-compatible. - Equivalent
- Implemented if both types have the exact same layout.
This implies having the same
MaybeHasNiche::MnArray. - Extra
For - This
Extracan be used to parseTviaParseSliceExtra::parse_slice_extra. - Fetch
- Fetch
Bytes - Full
Hash - Inline
- Inline
Output - Marker trait indicating that
ToOutputresult cannot be extended (no value, when represented as aVec<u8>, may be a prefix of another value). - List
Hashes - Maybe
HasNiche - This might contain a valid
Niche. - Niche
- True or fake (placeholder) niche.
- Object
- Output
- Parse
- This can be parsed by consuming the whole rest of the input.
- Parse
Inline - This can be parsed from an input, after which we can correctly parse something else.
- Parse
Input - Parse
Slice - Parse
Slice Extra - Parse
Slice Refless - Point
Input - Point
Visitor - Rainbow
Iterator - Refless
Inline - Refless
Object - Resolve
- Something that can resolve
Addresses toByteNodes. - Singular
- Singular
Fetch - Size
- SizeExt
- Tagged
- ToOutput
- Values of this type can be uniquely represented as a
Vec<u8>. - Topological
- Topology
- Traversible
Type Aliases§
- Byte
Node - Returned by
ResolveandFetchBytes. Represents traversal through the object graph. - Fail
Future - Fallible future type yielding either
TorError. - Node
- Result
- Default output for fallible functions.
- TopoVec