#[non_exhaustive]pub enum FormatError {
Kvn(Box<KvnParseError>),
Xml(Error),
XmlDe(DeError),
XmlSer(SeError),
ParseFloat(ParseFloatError),
ParseInt(ParseIntError),
Enum(EnumParseError),
InvalidFormat(String),
XmlWithContext {
context: String,
source: DeError,
},
}Expand description
Errors related to the physical format or syntax of the NDM.
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.
Kvn(Box<KvnParseError>)
Errors occurring during KVN parsing.
Xml(Error)
Errors occurring during XML parsing.
XmlDe(DeError)
Errors occurring during XML deserialization.
XmlSer(SeError)
Errors occurring during XML serialization.
ParseFloat(ParseFloatError)
Error when parsing a floating point number fails.
ParseInt(ParseIntError)
Error when parsing an integer number fails.
Enum(EnumParseError)
Error during enum parsing.
InvalidFormat(String)
Error when the format of a value or segment is invalid.
XmlWithContext
Errors occurring during XML deserialization with added context.
Trait Implementations§
Source§impl Debug for FormatError
impl Debug for FormatError
Source§impl Display for FormatError
impl Display for FormatError
Source§impl Error for FormatError
impl Error for FormatError
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<Box<KvnParseError>> for FormatError
impl From<Box<KvnParseError>> for FormatError
Source§fn from(source: Box<KvnParseError>) -> Self
fn from(source: Box<KvnParseError>) -> Self
Converts to this type from the input type.
Source§impl From<DeError> for FormatError
impl From<DeError> for FormatError
Source§impl From<EnumParseError> for FormatError
impl From<EnumParseError> for FormatError
Source§fn from(source: EnumParseError) -> Self
fn from(source: EnumParseError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for FormatError
impl From<Error> for FormatError
Source§impl From<FormatError> for CcsdsNdmError
impl From<FormatError> for CcsdsNdmError
Source§fn from(e: FormatError) -> Self
fn from(e: FormatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for FormatError
impl From<ParseFloatError> for FormatError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for FormatError
impl From<ParseIntError> for FormatError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FormatError
impl !RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl UnsafeUnpin for FormatError
impl !UnwindSafe for FormatError
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