pub enum TimeError {
DeltaNotRepresentable,
InvalidValue,
}
Expand description
Errors that can arise from parsing times serialized with Key
.
Variants§
DeltaNotRepresentable
An error that indicates that the stored timestamp is unable to be converted to the destination type without losing data.
InvalidValue
The value stored was not encoded correctly.
Trait Implementations§
§impl<'de> Deserialize<'de> for TimeError
impl<'de> Deserialize<'de> for TimeError
§fn deserialize<__D>(
__deserializer: __D
) -> Result<TimeError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TimeError, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Error for TimeError
impl Error for TimeError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<DeltaNotRepresentable> for TimeError
impl From<DeltaNotRepresentable> for TimeError
§fn from(_: DeltaNotRepresentable) -> TimeError
fn from(_: DeltaNotRepresentable) -> TimeError
Converts to this type from the input type.
§impl Serialize for TimeError
impl Serialize for TimeError
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for TimeError
impl Send for TimeError
impl Sync for TimeError
impl Unpin for TimeError
impl UnwindSafe for TimeError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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