Enum bonsaidb_core::key::time::TimeError
source · 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§
source§impl<'de> Deserialize<'de> for TimeError
impl<'de> Deserialize<'de> for TimeError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§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()
source§impl From<DeltaNotRepresentable> for TimeError
impl From<DeltaNotRepresentable> for TimeError
source§fn from(_: DeltaNotRepresentable) -> Self
fn from(_: DeltaNotRepresentable) -> Self
Converts to this type from the input type.
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§
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