Enum prost_types::TimestampError
source · #[non_exhaustive]
pub enum TimestampError {
OutOfSystemRange(Timestamp),
ParseFailure,
InvalidDateTime,
}Expand description
A timestamp handling error.
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.
OutOfSystemRange(Timestamp)
Indicates that a Timestamp could not be converted to
SystemTime because it is out of range.
The range of times that can be represented by SystemTime depends on the platform. All
Timestamps are likely representable on 64-bit Unix-like platforms, but other platforms,
such as Windows and 32-bit Linux, may not be able to represent the full range of
Timestamps.
ParseFailure
An error indicating failure to parse a timestamp in RFC-3339 format.
InvalidDateTime
Indicates an error when constructing a timestamp due to invalid date or time data.
Trait Implementations
sourceimpl Debug for TimestampError
impl Debug for TimestampError
sourceimpl Display for TimestampError
impl Display for TimestampError
sourceimpl Error for TimestampError
impl Error for TimestampError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<TimestampError> for TimestampError
impl PartialEq<TimestampError> for TimestampError
sourcefn eq(&self, other: &TimestampError) -> bool
fn eq(&self, other: &TimestampError) -> bool
impl StructuralPartialEq for TimestampError
Auto Trait Implementations
impl RefUnwindSafe for TimestampError
impl Send for TimestampError
impl Sync for TimestampError
impl Unpin for TimestampError
impl UnwindSafe for TimestampError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more