Enum iata_bcbp::Error [−][src]
pub enum Error { UnexpectedEndOfInput(Field), SubsectionTooLong, ExpectedInteger(Field), InvalidStartOfVersionNumber, InvalidStartOfSecurityData, InvalidCharacters, UnsupportedFormat, TrailingCharacters, }
Variants
UnexpectedEndOfInput(Field)
The end of the input was reached prematurely.
SubsectionTooLong
The length of the subsection encoded exceeds the remaining length of the input.
ExpectedInteger(Field)
The contents of a field parsed as a numeric was not a numeric value.
InvalidStartOfVersionNumber
The start-of-version-number value is not valid.
InvalidStartOfSecurityData
The start-of-security-data value is not valid.
InvalidCharacters
The BCBP string does not contain exclusively ASCII characters.
UnsupportedFormat
The BCBP format is not supported.
TrailingCharacters
After parsing, additional characters remain.
Trait Implementations
impl Clone for Error
[src]
impl Clone for Error
fn clone(&self) -> Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for Error
[src]
impl Eq for Error
impl PartialEq for Error
[src]
impl PartialEq for Error
fn eq(&self, other: &Error) -> bool
[src]
fn eq(&self, other: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Error) -> bool
[src]
fn ne(&self, other: &Error) -> bool
This method tests for !=
.
impl Ord for Error
[src]
impl Ord for Error
fn cmp(&self, other: &Error) -> Ordering
[src]
fn cmp(&self, other: &Error) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for Error
[src]
impl PartialOrd for Error
fn partial_cmp(&self, other: &Error) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Error) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Error) -> bool
[src]
fn lt(&self, other: &Error) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Error) -> bool
[src]
fn le(&self, other: &Error) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Error) -> bool
[src]
fn gt(&self, other: &Error) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Error) -> bool
[src]
fn ge(&self, other: &Error) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for Error
[src]
impl Hash for Error
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
impl Display for Error