TleParseError
このコンテンツはまだ日本語訳がありません。
Defined in: tle.rs:35
Available on crate feature
alloconly.
pub enum TleParseError { InsufficientLines, InvalidLine1Prefix, InvalidLine2Prefix, InvalidField { line: u8, field: &'static str, value: alloc::string::String }, InvalidChecksum { line: u8, expected: u32, found: Option<char> }, CatalogNumberMismatch { line1: u32, line2: u32 }, InvalidElements(ElementsError),}Error type for TLE parsing failures.
Variants
Section titled “Variants”InsufficientLines
Section titled “InsufficientLines”Not enough lines in the input.
InvalidLine1Prefix
Section titled “InvalidLine1Prefix”Line 1 does not start with ‘1’.
InvalidLine2Prefix
Section titled “InvalidLine2Prefix”Line 2 does not start with ‘2’.
InvalidField
Section titled “InvalidField”line: u8 field: &‘static str value: alloc::string::String
A numeric field could not be parsed.
InvalidChecksum
Section titled “InvalidChecksum”line: u8 expected: u32 found: Option<char>
The line’s mod-10 checksum digit (column 69) is absent or disagrees with the line’s contents — the line is corrupt or was hand-edited.
CatalogNumberMismatch
Section titled “CatalogNumberMismatch”line1: u32 line2: u32
Line 1 and line 2 carry different satellite catalog numbers, i.e. the two lines come from different objects.
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).