pub enum SpkError {
Show 15 variants
Io {
path: String,
message: String,
},
Truncated {
context: &'static str,
needed: usize,
actual: usize,
},
UnsupportedDafId {
id_word: String,
},
UnsupportedBinaryFormat {
binary_format: String,
},
UnsupportedSummaryShape {
nd: i32,
ni: i32,
},
InvalidField {
field: &'static str,
value: i32,
},
InvalidDoubleField {
field: &'static str,
value: f64,
},
OutOfCoverage {
et: f64,
start_et: f64,
stop_et: f64,
},
UnsupportedSegmentType {
expected: i32,
actual: i32,
},
InvalidSegmentLayout {
context: &'static str,
},
UnknownBody {
body: i32,
},
NoSegmentPath {
target: i32,
center: i32,
},
CoverageGap {
target: i32,
center: i32,
et: f64,
},
UnsupportedStateSegmentType {
data_type: i32,
},
FrameMismatch {
first: i32,
second: i32,
},
}Expand description
Error returned while reading an SPK/DAF byte slice.
Variants§
Io
File loading failed while reading an SPK kernel from disk.
Fields
Truncated
The input ended before a required DAF field could be read.
Fields
UnsupportedDafId
The file record did not identify a DAF/SPK kernel.
UnsupportedBinaryFormat
The file record named a binary format this parser does not implement.
UnsupportedSummaryShape
The DAF summary shape was not the SPK shape ND=2, NI=6.
Fields
InvalidField
A numeric DAF field was present but outside the supported range.
InvalidDoubleField
A floating-point SPK field was present but outside the supported range.
OutOfCoverage
The requested ET is not covered by the segment.
Fields
UnsupportedSegmentType
The segment data type is not supported by the requested evaluator.
Fields
InvalidSegmentLayout
The segment addresses or directory do not describe a valid SPK layout.
UnknownBody
No segment in the kernel names the requested NAIF body id.
NoSegmentPath
The kernel has both bodies but no segment chain connecting them.
Fields
CoverageGap
A segment chain exists, but no complete chain covers the requested ET.
Fields
UnsupportedStateSegmentType
A public state query reached an SPK segment type it cannot evaluate.
FrameMismatch
A chained query would combine states expressed in different frames.
Trait Implementations§
Source§impl Error for SpkError
impl Error for SpkError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<SpkError> for ObserveError
impl From<SpkError> for ObserveError
impl StructuralPartialEq for SpkError
Auto Trait Implementations§
impl Freeze for SpkError
impl RefUnwindSafe for SpkError
impl Send for SpkError
impl Sync for SpkError
impl Unpin for SpkError
impl UnsafeUnpin for SpkError
impl UnwindSafe for SpkError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.