Module misc

Source
Expand description

Miscellaneous types used in configuration

This module contains types that need to be shared across various crates and layers, but which don’t depend on specific elements of the Tor system.

Macros§

impl_not_auto_value_for_types 🔒
A helper for calling impl_not_auto_value for a number of types.

Structs§

InvalidBoolOrAuto
Boolean or "auto" configuration is invalid
InvalidPaddingLevel 🔒
Padding level configuration is invalid

Enums§

BoolOrAuto
Boolean, but with additional "auto" option
BoolOrAutoSerde 🔒
How we (de) serialize a BoolOrAuto
ExplicitOrAuto
A serializable value, or auto.
PaddingLevel
Padding enablement - rough amount of padding requested
PaddingLevelSerde 🔒
How we (de) serialize a PaddingLevel

Traits§

NotAutoValue
A marker trait for types that do not serialize to the same value as ExplicitOrAuto::Auto.