Struct async_speed_limit::limiter::Consume
source · 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> RefUnwindSafe for Consume<C, R>where R: RefUnwindSafe, <C as Clock>::Delay: RefUnwindSafe,
impl<C, R> Send for Consume<C, R>where R: Send, <C as Clock>::Delay: Send,
impl<C, R> Sync for Consume<C, R>where R: Sync, <C as Clock>::Delay: Sync,
impl<C, R> Unpin for Consume<C, R>where R: Unpin,
impl<C, R> UnwindSafe for Consume<C, R>where R: UnwindSafe, <C as Clock>::Delay: 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,
§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