pub enum TzifError {
Show 40 variants
UnexpectedEof {
offset: usize,
context: &'static str,
},
InvalidMagic {
offset: usize,
},
InvalidVersion(u8),
VersionMismatch {
first: Version,
second: Version,
},
MissingFooterStart {
offset: usize,
},
MissingFooterEnd {
offset: usize,
},
InvalidFooterUtf8,
TrailingData {
offset: usize,
},
CountTooLarge {
field: &'static str,
count: u32,
},
DataBlockLengthOverflow {
field: &'static str,
},
InvalidDstIndicator {
index: usize,
value: u8,
},
InvalidBooleanIndicator {
field: &'static str,
index: usize,
value: u8,
},
UnexpectedV2PlusData,
MissingV2PlusData(Version),
CountMismatch {
field: &'static str,
expected: usize,
actual: usize,
},
CountOverflow {
field: &'static str,
count: usize,
},
EmptyLocalTimeTypes,
EmptyDesignations,
TooManyLocalTimeTypes(usize),
InvalidTransitionType {
index: usize,
transition_type: u8,
},
InvalidDesignationIndex {
index: usize,
designation_index: u8,
},
Version1TransitionOutOfRange {
index: usize,
value: i64,
},
Version1LeapSecondOutOfRange {
index: usize,
value: i64,
},
TransitionTimesNotAscending {
index: usize,
},
UnterminatedDesignation {
index: usize,
designation_index: u8,
},
InvalidUtcOffset {
index: usize,
},
InvalidDesignation {
index: usize,
designation: Vec<u8>,
},
InvalidUtLocalIndicatorCombination {
index: usize,
},
FirstLeapSecondOccurrenceNegative {
value: i64,
},
LeapSecondOccurrencesNotAscending {
index: usize,
},
InvalidFirstLeapSecondCorrection {
correction: i32,
},
InvalidLeapSecondCorrection {
index: usize,
},
LeapSecondTruncationRequiresVersion4 {
version: Version,
},
LeapSecondExpirationRequiresVersion4 {
version: Version,
},
LeapSecondOccurrenceNotAtMonthEnd {
index: usize,
},
InvalidFooterAscii,
InvalidFooterControlByte,
FooterExtensionRequiresVersion3 {
version: Version,
},
InvalidFooterSyntax,
FooterInconsistentWithLastTransition,
}Variants§
UnexpectedEof
InvalidMagic
InvalidVersion(u8)
VersionMismatch
TrailingData
CountTooLarge
DataBlockLengthOverflow
InvalidDstIndicator
InvalidBooleanIndicator
UnexpectedV2PlusData
MissingV2PlusData(Version)
CountMismatch
CountOverflow
EmptyLocalTimeTypes
EmptyDesignations
TooManyLocalTimeTypes(usize)
InvalidTransitionType
InvalidDesignationIndex
Version1TransitionOutOfRange
Version1LeapSecondOutOfRange
TransitionTimesNotAscending
UnterminatedDesignation
InvalidUtcOffset
InvalidDesignation
InvalidUtLocalIndicatorCombination
FirstLeapSecondOccurrenceNegative
LeapSecondOccurrencesNotAscending
InvalidFirstLeapSecondCorrection
InvalidLeapSecondCorrection
LeapSecondTruncationRequiresVersion4
LeapSecondExpirationRequiresVersion4
LeapSecondOccurrenceNotAtMonthEnd
Trait Implementations§
Source§impl Error for TzifError
impl Error for TzifError
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 From<TzifError> for TzdistError
impl From<TzifError> for TzdistError
Source§impl From<TzifError> for TzifBuildError
impl From<TzifError> for TzifBuildError
impl Eq for TzifError
impl StructuralPartialEq for TzifError
Auto Trait Implementations§
impl Freeze for TzifError
impl RefUnwindSafe for TzifError
impl Send for TzifError
impl Sync for TzifError
impl Unpin for TzifError
impl UnsafeUnpin for TzifError
impl UnwindSafe for TzifError
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