Enum spayd::SpaydError
source · pub enum SpaydError {
ParseError(Error<String>),
RequiredFieldMissing(String),
Crc32Failed,
ConvertError(String),
FieldMissing(String),
}
Expand description
Errors encountered when parsing and validating SPAYD values.
Variants§
ParseError(Error<String>)
Parsing failed. The supplied text is in an incorrect format.
RequiredFieldMissing(String)
A field required by the SPAYD standard is missing. The field name is supplied in the error. In SPAYD version 1.0, only the ACC field is required.
Crc32Failed
The CRC32 checksum failed. The SPAYD value is probably incorrect or has been corrupted.
ConvertError(String)
Conversion failed. The field has an incorrect format.
FieldMissing(String)
The SPAYD value doesn’t have the field for conversion.
Trait Implementations§
source§impl Debug for SpaydError
impl Debug for SpaydError
source§impl Display for SpaydError
impl Display for SpaydError
source§impl Error for SpaydError
impl Error for SpaydError
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 PartialEq for SpaydError
impl PartialEq for SpaydError
source§fn eq(&self, other: &SpaydError) -> bool
fn eq(&self, other: &SpaydError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SpaydError
Auto Trait Implementations§
impl RefUnwindSafe for SpaydError
impl Send for SpaydError
impl Sync for SpaydError
impl Unpin for SpaydError
impl UnwindSafe for SpaydError
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