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
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
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
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TimestampError) -> bool
fn ne(&self, other: &TimestampError) -> bool
This method tests for !=.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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