pub enum PostureRetuneError {
EmptyPatch,
EnterEvents(usize),
EnterWindow(u64),
DutyPercent(f64),
DutyWindow(u64),
ExitClean(u64),
SimIntakeFloor(usize),
}Expand description
Why the re-tune channel refused a PosturePolicyPatch (JCI2FW Part
B). The rules live once, in PosturePolicyPatch::validate; the wire
layer maps these to its typed channel error verbatim.
Variants§
EmptyPatch
No threshold key was supplied — an empty patch is refused.
EnterEvents(usize)
cordon_enter_events below the floor of 1.
EnterWindow(u64)
cordon_enter_window_ms must be a positive window.
DutyPercent(f64)
cordon_duty_percent outside the sane (0.0, 100.0] range.
DutyWindow(u64)
cordon_duty_window_ms must be a positive window.
ExitClean(u64)
cordon_exit_clean_ms must be a positive window.
SimIntakeFloor(usize)
cordon_sim_intake_floor below the floor of 1.
Trait Implementations§
Source§impl Clone for PostureRetuneError
impl Clone for PostureRetuneError
impl Copy for PostureRetuneError
Source§impl Debug for PostureRetuneError
impl Debug for PostureRetuneError
Source§impl Display for PostureRetuneError
impl Display for PostureRetuneError
Source§impl Error for PostureRetuneError
impl Error for PostureRetuneError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for PostureRetuneError
impl PartialEq for PostureRetuneError
impl StructuralPartialEq for PostureRetuneError
Auto Trait Implementations§
impl Freeze for PostureRetuneError
impl RefUnwindSafe for PostureRetuneError
impl Send for PostureRetuneError
impl Sync for PostureRetuneError
impl Unpin for PostureRetuneError
impl UnsafeUnpin for PostureRetuneError
impl UnwindSafe for PostureRetuneError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more