コンテンツにスキップ

TleParseError

このコンテンツはまだ日本語訳がありません。

Defined in: tle.rs:35

Available on crate feature alloc only.

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.

Not enough lines in the input.


Line 1 does not start with ‘1’.


Line 2 does not start with ‘2’.


line: u8 field: &‘static str value: alloc::string::String

A numeric field could not be parsed.


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.


line1: u32 line2: u32

Line 1 and line 2 carry different satellite catalog numbers, i.e. the two lines come from different objects.


InvalidElements(ElementsError)

The parsed values are not a valid element set (e.g. non-positive mean motion or out-of-range eccentricity).