pub enum TimerError {
NoGlobalScope,
Rejected(String),
}Expand description
Why the browser could not wait.
Variants§
NoGlobalScope
The code runs outside a window, worker or service-worker global scope.
Rejected(String)
The host refused to schedule the timeout.
Trait Implementations§
Source§impl Clone for TimerError
impl Clone for TimerError
Source§impl Debug for TimerError
impl Debug for TimerError
Source§impl Display for TimerError
impl Display for TimerError
impl Eq for TimerError
Source§impl Error for TimerError
impl Error for TimerError
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()
Source§impl PartialEq for TimerError
impl PartialEq for TimerError
impl StructuralPartialEq for TimerError
Auto Trait Implementations§
impl Forget for TimerError
impl Freeze for TimerError
impl Move for TimerError
impl RefUnwindSafe for TimerError
impl Send for TimerError
impl Sync for TimerError
impl Unpin for TimerError
impl UnsafeUnpin 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