Enum tor_config::ConfigBuildError
source · #[non_exhaustive]pub enum ConfigBuildError {
MissingField {
field: String,
},
Invalid {
field: String,
problem: String,
},
Inconsistent {
fields: Vec<String>,
problem: String,
},
NoCompileTimeSupport {
field: 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
A mandatory field was not present.
Invalid
A single field had a value that proved to be unusable.
Inconsistent
Fields
Multiple fields are inconsistent.
NoCompileTimeSupport
Fields
The requested configuration is not supported in this build
Implementations§
Trait Implementations§
source§impl Clone for ConfigBuildError
impl Clone for ConfigBuildError
source§fn clone(&self) -> ConfigBuildError
fn clone(&self) -> ConfigBuildError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConfigBuildError
impl Debug for ConfigBuildError
source§impl Display for ConfigBuildError
impl Display for ConfigBuildError
source§impl Error for ConfigBuildError
impl Error for ConfigBuildError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ConfigBuildError> for ConfigResolveError
impl From<ConfigBuildError> for ConfigResolveError
source§fn from(source: ConfigBuildError) -> Self
fn from(source: ConfigBuildError) -> Self
Converts to this type from the input type.
source§impl From<SubfieldBuildError<ConfigBuildError>> for ConfigBuildError
impl From<SubfieldBuildError<ConfigBuildError>> for ConfigBuildError
source§fn from(e: SubfieldBuildError<ConfigBuildError>) -> Self
fn from(e: SubfieldBuildError<ConfigBuildError>) -> Self
Converts to this type from the input type.
source§impl From<UninitializedFieldError> for ConfigBuildError
impl From<UninitializedFieldError> for ConfigBuildError
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more