KvnParseError
Defined in: kvn.rs:26
Available on crate feature
alloconly.
pub enum KvnParseError { MissingField(&'static str), InvalidValue { key: &'static str, value: alloc::string::String }, InvalidEpoch(alloc::string::String), Unsupported(UnsupportedMetadata), InvalidElements(ElementsError), RepeatedKeyword(&'static str), KeywordBeforeHeader(alloc::string::String),}Error type for OMM KVN parsing.
Variants
Section titled “Variants”MissingField
Section titled “MissingField”MissingField(&‘static str)
A required keyword was absent.
InvalidValue
Section titled “InvalidValue”key: &‘static str value: alloc::string::String
A keyword’s value could not be parsed as the expected number.
InvalidEpoch
Section titled “InvalidEpoch”InvalidEpoch(alloc::string::String)
EPOCH was not a parseable ISO-8601 UTC timestamp (calendar or
ordinal / day-of-year form).
Unsupported
Section titled “Unsupported”Unsupported(UnsupportedMetadata)
A metadata keyword declares something this crate cannot read (non-Earth center, non-TEME frame, non-UTC time system, non-SGP4 theory).
InvalidElements
Section titled “InvalidElements”InvalidElements(ElementsError)
The parsed values are not a valid element set (e.g. non-positive mean motion or out-of-range eccentricity).
RepeatedKeyword
Section titled “RepeatedKeyword”RepeatedKeyword(&‘static str)
A keyword this reads or checks appears more than once. A KVN OMM describes one object, so the text holds more than one OMM (CelesTrak’s group queries concatenate them) or repeats a field.
KeywordBeforeHeader
Section titled “KeywordBeforeHeader”KeywordBeforeHeader(alloc::string::String)
In a document holding several OMMs, a keyword comes before the first
CCSDS_OMM_VERS, so it belongs to none of them.