pub enum DurationFlexError {
InvalidFormat,
OutOfRange,
}
Expand description
Errors returned by the different methods.
Variants§
InvalidFormat
String format is not valid, e.g. 1y
(y
is not supported).
OutOfRange
Value is out of range.
Trait Implementations§
Source§impl Clone for DurationFlexError
impl Clone for DurationFlexError
Source§fn clone(&self) -> DurationFlexError
fn clone(&self) -> DurationFlexError
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 DurationFlexError
impl Debug for DurationFlexError
impl Copy for DurationFlexError
Auto Trait Implementations§
impl Freeze for DurationFlexError
impl RefUnwindSafe for DurationFlexError
impl Send for DurationFlexError
impl Sync for DurationFlexError
impl Unpin for DurationFlexError
impl UnwindSafe for DurationFlexError
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