pub enum SleepError {
InvalidDuration(String),
ParseError(String),
NumberOutOfRange(String),
}Expand description
Sleep utilities error types
Variants§
InvalidDuration(String)
Returned when a duration string cannot be parsed
ParseError(String)
Returned when general parsing fails
NumberOutOfRange(String)
Returned when numeric values are outside valid range
Trait Implementations§
Source§impl Debug for SleepError
impl Debug for SleepError
Source§impl Display for SleepError
impl Display for SleepError
Source§impl Error for SleepError
impl Error for SleepError
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()
Auto Trait Implementations§
impl Freeze for SleepError
impl RefUnwindSafe for SleepError
impl Send for SleepError
impl Sync for SleepError
impl Unpin for SleepError
impl UnwindSafe for SleepError
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