#[non_exhaustive]pub enum TzStringError {
Utf8Error(Utf8Error),
ParseIntError(ParseIntError),
IoError(Error),
InvalidTzString(&'static str),
UnsupportedTzString(&'static str),
}
Expand description
Unified error type for parsing a TZ string
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Utf8Error(Utf8Error)
UTF-8 error
ParseIntError(ParseIntError)
Integer parsing error
IoError(Error)
I/O error
InvalidTzString(&'static str)
Invalid TZ string
UnsupportedTzString(&'static str)
Unsupported TZ string
Trait Implementations§
Source§impl Debug for TzStringError
impl Debug for TzStringError
Source§impl Display for TzStringError
impl Display for TzStringError
Source§impl Error for TzStringError
impl Error for TzStringError
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<Error> for TzStringError
impl From<Error> for TzStringError
Source§impl From<ParseIntError> for TzStringError
impl From<ParseIntError> for TzStringError
Source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<TzStringError> for TzError
Available on crate feature std
only.
impl From<TzStringError> for TzError
Available on crate feature
std
only.Source§fn from(error: TzStringError) -> Self
fn from(error: TzStringError) -> Self
Converts to this type from the input type.
Source§impl From<TzStringError> for TzFileError
impl From<TzStringError> for TzFileError
Source§fn from(error: TzStringError) -> Self
fn from(error: TzStringError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TzStringError
impl !RefUnwindSafe for TzStringError
impl Send for TzStringError
impl Sync for TzStringError
impl Unpin for TzStringError
impl !UnwindSafe for TzStringError
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