#[non_exhaustive]pub enum SpkError {
Io(String),
Format(String),
UnsupportedType(i32),
OutOfRange {
target: i32,
center: i32,
et: f64,
},
NoSegment {
target: i32,
center: i32,
},
}Expand description
Failure reading or evaluating an SPK kernel.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(String)
The file could not be read.
Format(String)
The file is not a valid SPK/DAF kernel.
UnsupportedType(i32)
A segment uses an SPK data type other than 2 or 3.
OutOfRange
No segment for this center → target pair covers the requested time.
Fields
NoSegment
The kernel has no segment at all for this center → target pair.
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)>
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 From<SpkError> for EngineError
impl From<SpkError> for EngineError
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
Mutably borrows from an owned value. Read more