pub enum TimerError {
TooLong,
NoCapacity,
}
Expand description
The error type for timer operations.
Variants§
TooLong
The requested timeout exceeds the timer’s max_timeout
setting.
NoCapacity
The timer has reached capacity and cannot support new timeouts.
Trait Implementations§
Source§impl Clone for TimerError
impl Clone for TimerError
Source§fn clone(&self) -> TimerError
fn clone(&self) -> TimerError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimerError
impl Debug for TimerError
Source§impl Display for TimerError
impl Display for TimerError
Source§impl Error for TimerError
impl Error for TimerError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl From<TimerError> for ()
impl From<TimerError> for ()
Source§fn from(_: TimerError)
fn from(_: TimerError)
Converts to this type from the input type.
Source§impl From<TimerError> for Error
impl From<TimerError> for Error
Source§fn from(src: TimerError) -> Error
fn from(src: TimerError) -> Error
Converts to this type from the input type.
Source§impl PartialEq for TimerError
impl PartialEq for TimerError
impl Eq for TimerError
impl StructuralPartialEq for TimerError
Auto Trait Implementations§
impl Freeze for TimerError
impl RefUnwindSafe for TimerError
impl Send for TimerError
impl Sync for TimerError
impl Unpin for TimerError
impl UnwindSafe for TimerError
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