Module types

Module types 

Source
Expand description

Various types that can occur in parsed network documents.

Some of the types are parsing adapters: transparent newtypes that can be used for type-driven parsing in netdocs. These are needed (rather than using the underlying value type) in cases where network documents have different syntaxes for the same thing.

NOTE: Several of these modules may eventually move elsewhere, or become their own crates.

Modules§

family
Implements the relay ‘family’ type.
policy
Exit policies: match patterns of addresses and/or ports.
version
Parsing and comparison for Tor versions

Structs§

B64
A byte array, encoded in base64 with optional padding.
Base64Fingerprint
A base64-encoded fingerprint (unpadded)
Fingerprint
A hex-encoded fingerprint with no spaces.
IdentifiedDigest
A single digest made with a nominated digest algorithm, ALGORITHM=DIGEST
Ignored
Ignored part of a network document.
Iso8601TimeNoSp
A wall-clock time, encoded in ISO8601 format without an intervening space.
Iso8601TimeSp
A wall-clock time, encoded in Iso8601 format with an intervening space between the date and time.
Nickname
The nickname for a Tor relay.
NotPresent
Part of a network document, that isn’t actually there.

Enums§

DigestName
The name of a digest algorithm.