pub enum DsfServiceErrorV1 {
InvalidInput(String),
Supersonic {
mach: f64,
ceiling: f64,
},
OutOfRange {
range_yd: f64,
solved_yd: f64,
},
DegenerateDrop {
range_yd: f64,
},
ForwardModel(String),
}Expand description
Errors returned by derive_dsf_point_v1 and derive_dsf_point_from_solve_v1. One
variant per failure mode (not a single stringly-typed variant) so a caller — in
particular the JSON bridge — can match exhaustively instead of sniffing message text.
Variants§
Implementations§
Source§impl DsfServiceErrorV1
impl DsfServiceErrorV1
Sourcepub fn failure_details(&self) -> Option<Value>
pub fn failure_details(&self) -> Option<Value>
Structured detail payload for a JSON bridge error envelope (MBA-1357 Task 2’s
ruling: an INHERENT method, not a trait impl, so this stays in truing_service and
keeps compiling with the bridge feature off).
Trait Implementations§
Source§impl Debug for DsfServiceErrorV1
impl Debug for DsfServiceErrorV1
Source§impl Display for DsfServiceErrorV1
impl Display for DsfServiceErrorV1
Source§impl Error for DsfServiceErrorV1
impl Error for DsfServiceErrorV1
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 DsfServiceErrorV1
impl PartialEq for DsfServiceErrorV1
impl StructuralPartialEq for DsfServiceErrorV1
Auto Trait Implementations§
impl Freeze for DsfServiceErrorV1
impl RefUnwindSafe for DsfServiceErrorV1
impl Send for DsfServiceErrorV1
impl Sync for DsfServiceErrorV1
impl Unpin for DsfServiceErrorV1
impl UnsafeUnpin for DsfServiceErrorV1
impl UnwindSafe for DsfServiceErrorV1
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<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.