Error parsing human-friendly duration
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.
Non-numeric value where number is expected
This usually means that either time unit is broken into words,
m sec instead of
msec, or just number is omitted,
2 hours min instead of
2 hours 1 min
The field is an byte offset of the errorneous character in the string.
Unit in the number is not one of allowed units
See documentation of
parse_duration for the list of supported
The two fields are start and end (exclusive) of the slice from the original string, containing errorneous value
The 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.
The value was an empty string (or consists only whitespace)
fn description(&self) -> &str[src]
impl StructuralPartialEq for Error[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.