pub enum DurationTransformError {
EncodeBufferTooSmall,
NotEnoughBytes,
}
Expand description
Error returned by Duration
when transforming.
Variants§
EncodeBufferTooSmall
The buffer is too small to encode the value.
NotEnoughBytes
NotEnoughBytes binary data.
Trait Implementations§
source§impl Clone for DurationTransformError
impl Clone for DurationTransformError
source§fn clone(&self) -> DurationTransformError
fn clone(&self) -> DurationTransformError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DurationTransformError
impl Debug for DurationTransformError
source§impl Display for DurationTransformError
impl Display for DurationTransformError
source§impl Error for DurationTransformError
impl Error for DurationTransformError
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 Hash for DurationTransformError
impl Hash for DurationTransformError
source§impl PartialEq for DurationTransformError
impl PartialEq for DurationTransformError
source§fn eq(&self, other: &DurationTransformError) -> bool
fn eq(&self, other: &DurationTransformError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DurationTransformError
impl Eq for DurationTransformError
impl StructuralPartialEq for DurationTransformError
Auto Trait Implementations§
impl Freeze for DurationTransformError
impl RefUnwindSafe for DurationTransformError
impl Send for DurationTransformError
impl Sync for DurationTransformError
impl Unpin for DurationTransformError
impl UnwindSafe for DurationTransformError
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