pub enum CdsError {
InvalidCcsdsDays(i64),
InvalidCtorForDaysOfLenInPreamble(LengthOfDaySegment),
DateBeforeCcsdsEpoch(DateBeforeCcsdsEpochError),
}Expand description
CDS timestamp error.
Variants§
InvalidCcsdsDays(i64)
CCSDS days value exceeds maximum allowed size or is negative
InvalidCtorForDaysOfLenInPreamble(LengthOfDaySegment)
There are distinct constructors depending on the days field width detected in the preamble field. This error will be returned if there is a missmatch.
DateBeforeCcsdsEpoch(DateBeforeCcsdsEpochError)
Date is before the CCSDS epoch (1958-01-01T00:00:00+00:00)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CdsError
impl<'de> Deserialize<'de> for CdsError
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 Error for CdsError
impl Error for CdsError
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<CdsError> for TimestampError
impl From<CdsError> for TimestampError
Source§impl From<DateBeforeCcsdsEpochError> for CdsError
impl From<DateBeforeCcsdsEpochError> for CdsError
Source§fn from(source: DateBeforeCcsdsEpochError) -> Self
fn from(source: DateBeforeCcsdsEpochError) -> Self
Converts to this type from the input type.
impl Copy for CdsError
impl Eq for CdsError
impl StructuralPartialEq for CdsError
Auto Trait Implementations§
impl Freeze for CdsError
impl RefUnwindSafe for CdsError
impl Send for CdsError
impl Sync for CdsError
impl Unpin for CdsError
impl UnwindSafe for CdsError
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