pub struct RefundWait(/* private fields */);Available on crate feature
std only.Expand description
A registered wait for the next RateLimiter::refund.
Registration happens when this value is created, before it is first polled, so callers can safely create it before checking the bucket.
Trait Implementations§
Source§impl Debug for RefundWait
impl Debug for RefundWait
Source§impl Future for RefundWait
impl Future for RefundWait
Auto Trait Implementations§
impl !RefUnwindSafe for RefundWait
impl !UnwindSafe for RefundWait
impl Freeze for RefundWait
impl Send for RefundWait
impl Sync for RefundWait
impl Unpin for RefundWait
impl UnsafeUnpin for RefundWait
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