Enum tor_config::ConfigBuildError
source ·
[−]#[non_exhaustive]
pub enum ConfigBuildError {
MissingField {
field: String,
},
Invalid {
field: String,
problem: String,
},
Inconsistent {
fields: Vec<String>,
problem: String,
},
}
Expand description
An error related to an option passed to Arti via a configuration builder.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingField
Fields
field: String
The name of the missing field.
A mandatory field was not present.
Invalid
A single field had a value that proved to be unusable.
Inconsistent
Fields
problem: String
The problem that makes them inconsistent
Multiple fields are inconsistent.
Implementations
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ConfigBuildError
impl Send for ConfigBuildError
impl Sync for ConfigBuildError
impl Unpin for ConfigBuildError
impl UnwindSafe for ConfigBuildError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more