pub struct LimitViolation {
pub axis: Axis,
pub kind: LimitKind,
pub needed_mil: f64,
pub available_mil: Option<f64>,
}Expand description
One recorded reason a DialPlan was clamped or could not be verified feasible
(MBA-1348). Always DISCLOSED in DialPlan::limits_hit, never silently absorbed.
Fields§
§axis: Axis§kind: LimitKind§needed_mil: f64The signed value that triggered this record, BEFORE any clamp: DIAL-space mil for
TravelExceeded/NoTravelData (comparable to available_mil, also dial-space);
TRUE angular mil for HoldBoundExceeded/NoHoldBoundData.
available_mil: Option<f64>The declared limit’s magnitude on the exceeded side, when known. None for
NoTravelData/NoHoldBoundData – that absence is the entire point of those kinds.
Trait Implementations§
Source§impl Clone for LimitViolation
impl Clone for LimitViolation
Source§fn clone(&self) -> LimitViolation
fn clone(&self) -> LimitViolation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LimitViolation
Source§impl Debug for LimitViolation
impl Debug for LimitViolation
Source§impl<'de> Deserialize<'de> for LimitViolation
impl<'de> Deserialize<'de> for LimitViolation
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 PartialEq for LimitViolation
impl PartialEq for LimitViolation
Source§impl Serialize for LimitViolation
impl Serialize for LimitViolation
impl StructuralPartialEq for LimitViolation
Auto Trait Implementations§
impl Freeze for LimitViolation
impl RefUnwindSafe for LimitViolation
impl Send for LimitViolation
impl Sync for LimitViolation
impl Unpin for LimitViolation
impl UnsafeUnpin for LimitViolation
impl UnwindSafe for LimitViolation
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.