pub struct Consume<C: Clock, R> { /* private fields */ }
Expand description
The future returned by Limiter::consume()
.
Implementations§
Trait Implementations§
Source§impl<C: Clock, R: Unpin> FusedFuture for Consume<C, R>
impl<C: Clock, R: Unpin> FusedFuture for Consume<C, R>
Source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the underlying future should no longer be polled.Auto Trait Implementations§
impl<C, R> Freeze for Consume<C, R>
impl<C, R> RefUnwindSafe for Consume<C, R>
impl<C, R> Send for Consume<C, R>
impl<C, R> Sync for Consume<C, R>
impl<C, R> Unpin for Consume<C, R>where
R: Unpin,
impl<C, R> UnwindSafe for Consume<C, R>
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