#[non_exhaustive]pub enum GpxError {
Show 21 variants
ParseFloatError(ParseFloatError),
ParseIntegerError(ParseIntError),
InvalidChildElement(String, &'static str),
InvalidClosingTag(String, &'static str),
MissingClosingTag(&'static str),
MissingOpeningTag(&'static str),
InvalidElementLacksAttribute(&'static str, &'static str),
OutOfBounds(&'static str),
XmlParseError(Error),
UnknownVersionError(GpxVersion),
TagOpenedTwice(&'static str),
TrackSegmentError(),
NoStringContent,
XmlWriteError(Error),
MissingEmailPartError(&'static str),
TooManyAtsError,
EventParsingError(&'static str),
MetadataParsingError(),
LonLatOutOfBoundsError(&'static str, &'static str, f64),
Iso8601Error(Parse),
Iso8601ErrorWriting(Format),
}
Expand description
Errors that can occur when reading or writing GPX files
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.
ParseFloatError(ParseFloatError)
ParseIntegerError(ParseIntError)
InvalidChildElement(String, &'static str)
InvalidClosingTag(String, &'static str)
MissingClosingTag(&'static str)
MissingOpeningTag(&'static str)
InvalidElementLacksAttribute(&'static str, &'static str)
OutOfBounds(&'static str)
XmlParseError(Error)
UnknownVersionError(GpxVersion)
TagOpenedTwice(&'static str)
TrackSegmentError()
NoStringContent
XmlWriteError(Error)
MissingEmailPartError(&'static str)
TooManyAtsError
EventParsingError(&'static str)
MetadataParsingError()
LonLatOutOfBoundsError(&'static str, &'static str, f64)
Iso8601Error(Parse)
Iso8601ErrorWriting(Format)
Trait Implementations§
source§impl Error for GpxError
impl Error for GpxError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<EmitterError> for GpxError
impl From<EmitterError> for GpxError
source§impl From<ParseFloatError> for GpxError
impl From<ParseFloatError> for GpxError
source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for GpxError
impl From<ParseIntError> for GpxError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GpxError
impl Send for GpxError
impl Sync for GpxError
impl Unpin for GpxError
impl !UnwindSafe for GpxError
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