Struct teloxide_core::adaptors::erased::ErasedRequest
source · pub struct ErasedRequest<'a, T, E> { /* private fields */ }
Available on crate feature
erased
only.Expand description
Request
with erased type.
Trait Implementations§
source§impl<T, E> HasPayload for ErasedRequest<'_, T, E>where
T: Payload,
impl<T, E> HasPayload for ErasedRequest<'_, T, E>where T: Payload,
source§fn payload_mut(&mut self) -> &mut Self::Payload
fn payload_mut(&mut self) -> &mut Self::Payload
Gain mutable access to the underlying payload.
source§fn payload_ref(&self) -> &Self::Payload
fn payload_ref(&self) -> &Self::Payload
Gain immutable access to the underlying payload.
source§impl<'a, T, E> IntoFuture for ErasedRequest<'a, T, E>where
T: Payload,
E: Error + Send,
impl<'a, T, E> IntoFuture for ErasedRequest<'a, T, E>where T: Payload, E: Error + Send,
§type Output = Result<<T as Payload>::Output, E>
type Output = Result<<T as Payload>::Output, E>
The output that the future will produce on completion.
§type IntoFuture = Pin<Box<dyn Future<Output = Result<<T as Payload>::Output, E>> + Send + 'a, Global>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<<T as Payload>::Output, E>> + Send + 'a, Global>>
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
source§impl<'a, T, E> Request for ErasedRequest<'a, T, E>where
T: Payload,
E: Error + Send,
impl<'a, T, E> Request for ErasedRequest<'a, T, E>where T: Payload, E: Error + Send,
§type Send = Pin<Box<dyn Future<Output = Result<<T as Payload>::Output, E>> + Send + 'a, Global>>
type Send = Pin<Box<dyn Future<Output = Result<<T as Payload>::Output, E>> + Send + 'a, Global>>
The type of the future returned by the
send
method.§type SendRef = Pin<Box<dyn Future<Output = Result<<T as Payload>::Output, E>> + Send + 'a, Global>>
type SendRef = Pin<Box<dyn Future<Output = Result<<T as Payload>::Output, E>> + Send + 'a, Global>>
A type of the future returned by the
send_ref
method.