Struct teloxide_core::adaptors::throttle::ThrottlingRequest
source · pub struct ThrottlingRequest<R: HasPayload> { /* private fields */ }
Available on crate feature
throttle
only.Expand description
Request returned by Throttling
methods.
Trait Implementations§
source§impl<R: HasPayload + Clone> HasPayload for ThrottlingRequest<R>
impl<R: HasPayload + Clone> HasPayload for ThrottlingRequest<R>
source§fn payload_mut(&mut self) -> &mut Self::Payload
fn payload_mut(&mut self) -> &mut Self::Payload
Note that if this request was already executed via send_ref
and it
didn’t yet completed, this method will clone the underlying request.
§type Payload = <R as HasPayload>::Payload
type Payload = <R as HasPayload>::Payload
The type of the payload contained.
source§fn payload_ref(&self) -> &Self::Payload
fn payload_ref(&self) -> &Self::Payload
Gain immutable access to the underlying payload.
source§impl<R> IntoFuture for ThrottlingRequest<R>where
R: Request + Clone + Send + Sync + 'static,
R::Err: AsResponseParameters + Send,
Output<R>: Send,
impl<R> IntoFuture for ThrottlingRequest<R>where R: Request + Clone + Send + Sync + 'static, R::Err: AsResponseParameters + Send, Output<R>: Send,
§type Output = Result<<<R as HasPayload>::Payload as Payload>::Output, <R as Request>::Err>
type Output = Result<<<R as HasPayload>::Payload as Payload>::Output, <R as Request>::Err>
The output that the future will produce on completion.
§type IntoFuture = ThrottlingSend<R>
type IntoFuture = ThrottlingSend<R>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more