pub enum OnError {
Fail,
Disable,
}Expand description
Controls what the feature registry does when OptionalSection::validate_enabled
returns an error for an otherwise-enabled section.
Variants§
Fail
Propagate the error – startup halts immediately. This is the default.
Disable
Treat the feature as disabled and continue startup.
The validation error reason is recorded in crate::FeatureRecord::override_source
as crate::OverrideSource::ValidationError so operators can inspect it in the
startup summary without crashing the service.
Trait Implementations§
impl Copy for OnError
impl Eq for OnError
impl StructuralPartialEq for OnError
Auto Trait Implementations§
impl Forget for OnError
impl Freeze for OnError
impl RefUnwindSafe for OnError
impl Send for OnError
impl Sync for OnError
impl Unpin for OnError
impl UnsafeUnpin for OnError
impl UnwindSafe for OnError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.