Skip to main content

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.

Re-exports§

pub use misc::Ed25519FamilyCert;
pub use misc::Ed25519IdentityCert;
pub use misc::Ed25519NtorCrossCert;
pub use misc::KeywordOrString;
pub use misc::RetainedOrderVec;
pub use misc::ContactInfo;
pub use misc::InvalidNickname;
pub use misc::Nickname;
pub use misc::NoMoreArguments;
pub use misc::NotPresent;
pub use misc::NumericBoolean;
pub use misc::Unknown;
pub use misc::Hostname;
pub use misc::InternetHost;
pub use misc::InvalidHostname;
pub use misc::InvalidInternetHost;
pub use misc::InvalidContactInfo;
pub use misc::NotPresentEachValue;
pub use misc::RsaSha1Signature;
pub use misc::B16;
pub use misc::B16U;
pub use misc::B64;
pub use misc::FixedB16U;
pub use misc::FixedB64;
pub use misc::Base64Fingerprint;
pub use misc::Fingerprint;
pub use misc::Ignored;
pub use misc::IgnoredItemOrObjectValue;
pub use misc::ItemPresent;
pub use misc::SpFingerprint;
pub use misc::Curve25519Public;
pub use misc::Ed25519AlgorithmString;
pub use misc::Ed25519IdentityLine;
pub use misc::Ed25519Public;
pub use misc::DigestName;
pub use misc::IdentifiedDigest;
pub use misc::F64Finite;
pub use misc::F64FiniteParseError;
pub use misc::Iso8601TimeNoSp;
pub use misc::Iso8601TimeSp;
pub use parse2_encode::raw_data_object;
use crate::NormalItemArgument; 🔒

Modules§

descriptor
Shared types between router descriptors and extra-info documents.
embedded_cert 🔒
Types related to certificates
family
Implements the relay ‘family’ type.
misc 🔒
Types used to parse arguments of entries in a directory document.
parse2_encode 🔒
Helpers for parse2 and encode
policy
Exit policies: match patterns of addresses and/or ports.
relay_flags
Relay flags (aka Router Status Flags), eg in network status documents
version
Parsing and comparison for Tor versions

Structs§

EmbeddedCert
One certificate inside a netdoc, covering data other than the netdoc itself

Traits§

EmbeddableCertObject
Certificate data whose unverified form UR is representable as a netdoc Object