pub enum PromotionRejection {
ControllerNotFound,
CalibrationTooLow {
current: f64,
required: f64,
},
InsufficientEpochs {
current: u64,
required: u64,
mode: ControllerMode,
},
InvalidTransition {
from: ControllerMode,
to: ControllerMode,
},
HeldForInvestigation,
}Expand description
Reason a promotion was rejected.
Variants§
ControllerNotFound
Controller not found.
CalibrationTooLow
Calibration score below threshold.
InsufficientEpochs
Not enough epochs in the prerequisite mode.
Fields
§
mode: ControllerModeThe mode the controller is currently in.
InvalidTransition
Invalid transition (e.g., Shadow directly to Active).
HeldForInvestigation
Controller is in Hold mode and cannot be promoted without explicit release.
Trait Implementations§
Source§impl Clone for PromotionRejection
impl Clone for PromotionRejection
Source§fn clone(&self) -> PromotionRejection
fn clone(&self) -> PromotionRejection
Returns a duplicate 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 PromotionRejection
impl Debug for PromotionRejection
Source§impl<'de> Deserialize<'de> for PromotionRejection
impl<'de> Deserialize<'de> for PromotionRejection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PromotionRejection
impl Display for PromotionRejection
Source§impl PartialEq for PromotionRejection
impl PartialEq for PromotionRejection
Source§impl Serialize for PromotionRejection
impl Serialize for PromotionRejection
impl StructuralPartialEq for PromotionRejection
Auto Trait Implementations§
impl Freeze for PromotionRejection
impl RefUnwindSafe for PromotionRejection
impl Send for PromotionRejection
impl Sync for PromotionRejection
impl Unpin for PromotionRejection
impl UnsafeUnpin for PromotionRejection
impl UnwindSafe for PromotionRejection
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).