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
Timestamp
s 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
Timestamp
s.
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§
source§impl Debug for TimestampError
impl Debug for TimestampError
source§impl Display for TimestampError
impl Display for TimestampError
source§impl Error for TimestampError
impl Error for TimestampError
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 PartialEq for TimestampError
impl PartialEq for TimestampError
impl StructuralPartialEq for TimestampError
Auto Trait Implementations§
impl Freeze for TimestampError
impl RefUnwindSafe for TimestampError
impl Send for TimestampError
impl Sync for TimestampError
impl Unpin for TimestampError
impl UnwindSafe for TimestampError
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