pub enum ParseTimeError {
ParseHours(ParseIntError),
ParseMilliseconds(ParseIntError),
ParseMinutes(ParseIntError),
ParseSeconds(ParseIntError),
MissingHours,
MissingMilliseconds,
MissingMinutes,
MissingSeconds,
MissingTime,
UnexpectedTimePart(String),
}
Expand description
An error when parsing time
Variants§
ParseHours(ParseIntError)
Hours does not contain an integer
ParseMilliseconds(ParseIntError)
Milliseconds does not contain an integer
ParseMinutes(ParseIntError)
Minutes does not contain an integer
ParseSeconds(ParseIntError)
Seconds does not contain an integer
MissingHours
Hours not found in time part
MissingMilliseconds
Milliseconds not found in time part
MissingMinutes
Minutes not found in time part
MissingSeconds
Seconds not found in time part
MissingTime
Time part is empty
UnexpectedTimePart(String)
Got an unexpected part of time
Trait Implementations§
Source§impl Debug for ParseTimeError
impl Debug for ParseTimeError
Source§impl Display for ParseTimeError
impl Display for ParseTimeError
Source§impl Error for ParseTimeError
impl Error for ParseTimeError
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()
Auto Trait Implementations§
impl Freeze for ParseTimeError
impl RefUnwindSafe for ParseTimeError
impl Send for ParseTimeError
impl Sync for ParseTimeError
impl Unpin for ParseTimeError
impl UnwindSafe for ParseTimeError
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