[−]Enum humantime::DurationError
Error parsing human-friendly duration
Variants
InvalidCharacter(usize)Invalid character during parsing
More specifically anything that is not alphanumeric is prohibited
The field is an byte offset of the character in the string.
NumberExpected(usize)Non-numeric value where number is expected
This usually means that either time unit is broken into words,
e.g. m sec instead of msec, or just number is omitted,
for example 2 hours min instead of 2 hours 1 min
The field is an byte offset of the errorneous character in the string.
UnknownUnit(usize, usize)Unit in the number is not one of allowed units
See documentation of parse_duration for the list of supported
time units.
The two fields are start and end (exclusive) of the slice from the original string, containing errorneous value
NumberOverflowThe numeric value is too large
Usually this means value is too large to be useful. If user writes data in subsecond units, then the maximum is about 3k years. When using seconds, or larger units, the limit is even larger.
EmptyThe value was an empty string (or consists only whitespace)
Trait Implementations
impl PartialEq<Error> for Error[src]
impl Copy for Error[src]
impl Clone for Error[src]
fn clone(&self) -> Error[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Display for Error
impl Debug for Error[src]
impl Error for Error
Auto Trait Implementations
impl Send for DurationError
impl Sync for DurationError
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,