Struct teloxide_core::adaptors::auto_send::AutoRequest
source · [−]pub struct AutoRequest<R>(_);👎Deprecated since 0.8.0:
AutoSend is no longer required to .await requests and is now noopAvailable on crate feature
auto_send only.Implementations
sourceimpl<R> AutoRequest<R>where
R: Request,
impl<R> AutoRequest<R>where
R: Request,
Trait Implementations
sourceimpl<R: Request> HasPayload for AutoRequest<R>
impl<R: Request> HasPayload for AutoRequest<R>
type Payload = <R as HasPayload>::Payload
type Payload = <R as HasPayload>::Payload
The type of the payload contained.
sourcefn payload_mut(&mut self) -> &mut Self::Payload
fn payload_mut(&mut self) -> &mut Self::Payload
Gain mutable access to the underlying payload.
sourcefn payload_ref(&self) -> &Self::Payload
fn payload_ref(&self) -> &Self::Payload
Gain immutable access to the underlying payload.
sourcefn with_payload_mut<F>(self, f: F) -> Selfwhere
Self: Sized,
F: FnOnce(&mut Self::Payload),
fn with_payload_mut<F>(self, f: F) -> Selfwhere
Self: Sized,
F: FnOnce(&mut Self::Payload),
Update payload with a function
sourceimpl<R: Request> IntoFuture for AutoRequest<R>
impl<R: Request> IntoFuture for AutoRequest<R>
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 = <R as Request>::Send
type IntoFuture = <R as Request>::Send
Which kind of future are we turning this into?
sourcefn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
sourceimpl<R> Request for AutoRequest<R>where
R: Request,
impl<R> Request for AutoRequest<R>where
R: Request,
type Err = <R as Request>::Err
type Err = <R as Request>::Err
The type of an error that may happen while sending a request to
Telegram. Read more
sourcefn erase<'a>(self) -> ErasedRequest<'a, Self::Payload, Self::Err>ⓘNotable traits for ErasedRequest<'a, T, E>impl<'a, T, E> Request for ErasedRequest<'a, T, E>where
T: Payload,
E: Error + Send, type Err = E; type Send = BoxFuture<'a, Result<Output<Self>, Self::Err>>; type SendRef = BoxFuture<'a, Result<Output<Self>, Self::Err>>;where
Self: Sized + 'a,
fn erase<'a>(self) -> ErasedRequest<'a, Self::Payload, Self::Err>ⓘNotable traits for ErasedRequest<'a, T, E>impl<'a, T, E> Request for ErasedRequest<'a, T, E>where
T: Payload,
E: Error + Send, type Err = E; type Send = BoxFuture<'a, Result<Output<Self>, Self::Err>>; type SendRef = BoxFuture<'a, Result<Output<Self>, Self::Err>>;where
Self: Sized + 'a,
T: Payload,
E: Error + Send, type Err = E; type Send = BoxFuture<'a, Result<Output<Self>, Self::Err>>; type SendRef = BoxFuture<'a, Result<Output<Self>, Self::Err>>;
Available on crate feature
erased only.Auto Trait Implementations
impl<R> RefUnwindSafe for AutoRequest<R>where
R: RefUnwindSafe,
impl<R> Send for AutoRequest<R>where
R: Send,
impl<R> Sync for AutoRequest<R>where
R: Sync,
impl<R> Unpin for AutoRequest<R>where
R: Unpin,
impl<R> UnwindSafe for AutoRequest<R>where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
