Enum tor_config::ReconfigureError
source · #[non_exhaustive]pub enum ReconfigureError {
CannotChange {
field: String,
},
UnsupportedSituation(String),
Bug(Bug),
}
Expand description
An error caused when attempting to reconfigure an existing Arti client, or one of its modules.
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.
CannotChange
Tried to change a field that cannot change on a running client.
UnsupportedSituation(String)
The requested configuration is not supported in this situation
Something, probably discovered at runtime, is not compatible with the specified configuration.
This ought not to be returned when the configuration is simply not supported
by this build of arti -
that should be reported at config build type as ConfigBuildError::Unsupported
.
Bug(Bug)
There was a programming error somewhere in our code, or the calling code.
Trait Implementations§
source§impl Clone for ReconfigureError
impl Clone for ReconfigureError
source§fn clone(&self) -> ReconfigureError
fn clone(&self) -> ReconfigureError
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 ReconfigureError
impl Debug for ReconfigureError
source§impl Display for ReconfigureError
impl Display for ReconfigureError
source§impl Error for ReconfigureError
impl Error for ReconfigureError
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<Bug> for ReconfigureError
impl From<Bug> for ReconfigureError
Auto Trait Implementations§
impl !RefUnwindSafe for ReconfigureError
impl Send for ReconfigureError
impl Sync for ReconfigureError
impl Unpin for ReconfigureError
impl !UnwindSafe for ReconfigureError
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