Struct calloop::timer::TimeoutFuture
source · pub struct TimeoutFuture { /* private fields */ }
Expand description
A future that resolves once a certain timeout is expired
Implementations§
source§impl TimeoutFuture
impl TimeoutFuture
sourcepub fn from_duration<Data>(
handle: &LoopHandle<'_, Data>,
duration: Duration,
) -> TimeoutFuture ⓘ
pub fn from_duration<Data>( handle: &LoopHandle<'_, Data>, duration: Duration, ) -> TimeoutFuture ⓘ
Create a future that resolves after a given duration
sourcepub fn from_deadline<Data>(
handle: &LoopHandle<'_, Data>,
deadline: Instant,
) -> TimeoutFuture ⓘ
pub fn from_deadline<Data>( handle: &LoopHandle<'_, Data>, deadline: Instant, ) -> TimeoutFuture ⓘ
Create a future that resolves at a given instant
Trait Implementations§
source§impl Debug for TimeoutFuture
impl Debug for TimeoutFuture
source§impl Future for TimeoutFuture
impl Future for TimeoutFuture
Auto Trait Implementations§
impl Freeze for TimeoutFuture
impl !RefUnwindSafe for TimeoutFuture
impl !Send for TimeoutFuture
impl !Sync for TimeoutFuture
impl Unpin for TimeoutFuture
impl !UnwindSafe for TimeoutFuture
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<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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