pub enum TimeZoneAbbreviationsError {
InvalidFileName {
file: String,
},
RecursionLimit {
file: String,
},
FileNotFound {
file: String,
},
LineTooLong {
file: String,
line: usize,
},
IncludeWithoutFileName {
file: String,
line: usize,
},
MissingOffset {
file: String,
line: usize,
},
InvalidOffset {
file: String,
line: usize,
},
InvalidSyntax {
file: String,
line: usize,
},
AbbreviationTooLong {
abbreviation: String,
file: String,
line: usize,
},
OffsetOutOfRange {
offset: i32,
file: String,
line: usize,
},
MultiplyDefined {
abbreviation: String,
file: String,
line: usize,
},
}Expand description
Why PostgreSQL refuses a time zone abbreviation file, one variant per message tzparser.c
raises.
Variants§
InvalidFileName
A file name with a character that is not a letter.
RecursionLimit
An @INCLUDE nested more than three deep.
FileNotFound
A file the caller’s files do not have.
LineTooLong
A line of 1023 bytes or more.
IncludeWithoutFileName
An @INCLUDE naming no file.
MissingOffset
An abbreviation with nothing after it.
InvalidOffset
An offset with characters after its digits.
InvalidSyntax
Something other than a comment after an entry.
AbbreviationTooLong
An abbreviation longer than 10 bytes.
Fields
OffsetOutOfRange
An offset beyond 14 hours either side of UTC.
Fields
MultiplyDefined
An abbreviation defined twice with different meanings and no @OVERRIDE before the
second.
Trait Implementations§
Source§impl Clone for TimeZoneAbbreviationsError
impl Clone for TimeZoneAbbreviationsError
Source§impl Debug for TimeZoneAbbreviationsError
impl Debug for TimeZoneAbbreviationsError
Source§impl Display for TimeZoneAbbreviationsError
impl Display for TimeZoneAbbreviationsError
impl Eq for TimeZoneAbbreviationsError
Source§impl Error for TimeZoneAbbreviationsError
impl Error for TimeZoneAbbreviationsError
1.30.0 · 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 Hash for TimeZoneAbbreviationsError
impl Hash for TimeZoneAbbreviationsError
impl StructuralPartialEq for TimeZoneAbbreviationsError
Auto Trait Implementations§
impl Forget for TimeZoneAbbreviationsError
impl Freeze for TimeZoneAbbreviationsError
impl Move for TimeZoneAbbreviationsError
impl RefUnwindSafe for TimeZoneAbbreviationsError
impl Send for TimeZoneAbbreviationsError
impl Sync for TimeZoneAbbreviationsError
impl Unpin for TimeZoneAbbreviationsError
impl UnsafeUnpin for TimeZoneAbbreviationsError
impl UnwindSafe for TimeZoneAbbreviationsError
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