Enum tor_config::Reconfigure
source ·
[−]#[non_exhaustive]
pub enum Reconfigure {
AllOrNothing,
WarnOnFailures,
CheckAllOrNothing,
}
Expand description
Rules for reconfiguring a running Arti instance.
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.
AllOrNothing
Perform no reconfiguration unless we can guarantee that all changes will be successful.
WarnOnFailures
Try to reconfigure as much as possible; warn on fields that we cannot reconfigure.
CheckAllOrNothing
Don’t reconfigure anything: Only check whether we can guarantee that all changes will be successful.
Implementations
Called when we see a disallowed attempt to change field
: either give a ReconfigureError,
or warn and return Ok(())
, depending on the value of self
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Reconfigure
impl Send for Reconfigure
impl Sync for Reconfigure
impl Unpin for Reconfigure
impl UnwindSafe for Reconfigure
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