Skip to main content

Module misc

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.