pub enum DurationFlexError {
InvalidFormat,
OutOfRange,
}Expand description
Errors returned by the different methods.
Variants§
InvalidFormat
String format is not valid, e.g. 1x (x 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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DurationFlexError
Source§impl Debug for DurationFlexError
impl Debug for DurationFlexError
Source§impl Display for DurationFlexError
impl Display for DurationFlexError
impl Eq for DurationFlexError
Source§impl Error for DurationFlexError
impl Error for DurationFlexError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 DurationFlexError
impl Hash for DurationFlexError
Source§impl PartialEq for DurationFlexError
impl PartialEq for DurationFlexError
impl StructuralPartialEq 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 UnsafeUnpin 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