#[non_exhaustive]pub enum TimestampParseError {
TimeError(Parse),
TimeFormatError(Format),
Other(&'static str),
InvalidFormat {
location: &'static Location<'static>,
s: Option<String>,
},
}
Available on crate feature
timestamp
only.Expand description
Errors that can occur when parsing a timestamp.
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.
TimeError(Parse)
Available on crate feature
time
only.Could not parse the timestamp using time
TimeFormatError(Format)
Available on crate feature
time
only.Could not format the timestamp using time
Other(&'static str)
Other error
InvalidFormat
Timestamp has an invalid format.
Trait Implementations§
Source§impl Debug for TimestampParseError
impl Debug for TimestampParseError
Source§impl Display for TimestampParseError
impl Display for TimestampParseError
Source§impl Error for TimestampParseError
impl Error for TimestampParseError
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<Format> for TimestampParseError
Available on crate feature time
only.
impl From<Format> for TimestampParseError
Available on crate feature
time
only.Source§impl From<Infallible> for TimestampParseError
impl From<Infallible> for TimestampParseError
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TimestampParseError
impl !RefUnwindSafe for TimestampParseError
impl Send for TimestampParseError
impl Sync for TimestampParseError
impl Unpin for TimestampParseError
impl !UnwindSafe for TimestampParseError
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