pub struct Expired<F, T> { /* private fields */ }
Expand description
Error when Timed expires
Implements Future
that can be used to restart Timed
Note, that Oneshot
starts execution immediately after resolving this Future
Implementations§
Trait Implementations§
Source§impl<F, T: Oneshot> Error for Expired<F, T>
impl<F, T: Oneshot> Error for Expired<F, T>
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()
impl<F: Future + Unpin, T: Oneshot> Unpin for Expired<F, T>
Auto Trait Implementations§
impl<F, T> Freeze for Expired<F, T>
impl<F, T> RefUnwindSafe for Expired<F, T>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, T> Send for Expired<F, T>
impl<F, T> Sync for Expired<F, T>
impl<F, T> UnwindSafe for Expired<F, T>where
T: UnwindSafe,
F: UnwindSafe,
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more