Enum ParseError
#[repr(u8)]pub enum ParseError {
Show 16 variants
Empty = 0,
MissingName = 1,
NameTooShort = 2,
InvalidNameCharacter = 3,
NameTooLong = 4,
UnterminatedName = 5,
MissingOffset = 6,
InvalidOffset = 7,
OffsetOutOfRange = 8,
RulesWithoutDaylightSaving = 9,
InvalidRule = 10,
RuleOutOfRange = 11,
InvalidTime = 12,
TimeOutOfRange = 13,
MissingEndRule = 14,
TrailingCharacters = 15,
}Expand description
Why a POSIX TZ string was rejected.
Variants§
Empty = 0
The string is empty.
MissingName = 1
The string does not start with a zone name.
NameTooShort = 2
A zone name has fewer than three bytes.
InvalidNameCharacter = 3
A zone name has a character that is not allowed: a quoted name may hold
only ASCII alphanumeric characters, + and -.
NameTooLong = 4
A zone name is longer than the 7 bytes of the abbreviation buffer.
UnterminatedName = 5
A quoted name is not closed with >.
MissingOffset = 6
The standard offset is missing.
InvalidOffset = 7
The standard offset is malformed, or its minutes or seconds are above 59.
OffsetOutOfRange = 8
The standard offset is larger than 24 hours.
RulesWithoutDaylightSaving = 9
Rules are given without a daylight saving name.
InvalidRule = 10
A transition rule is malformed.
RuleOutOfRange = 11
A number of a rule is out of its range.
InvalidTime = 12
A rule time is malformed, or its minutes or seconds are above 59.
TimeOutOfRange = 13
A rule time is larger than 167 hours.
MissingEndRule = 14
The comma-separated rule pair has only one rule.
TrailingCharacters = 15
Extra characters follow a complete TZ string.
Trait Implementations§
§impl Clone for ParseError
impl Clone for ParseError
§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ParseError
impl Debug for ParseError
§impl Display for ParseError
impl Display for ParseError
§impl Error for ParseError
impl Error for ParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()