Struct teloxide_core::adaptors::cache_me::CachedMeRequest
source · pub struct CachedMeRequest<R: Request<Payload = GetMe>>(/* private fields */);
Available on crate feature
cache_me
only.Trait Implementations§
source§impl<R: Request<Payload = GetMe>> HasPayload for CachedMeRequest<R>
impl<R: Request<Payload = GetMe>> HasPayload for CachedMeRequest<R>
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<R: Request<Payload = GetMe>> IntoFuture for CachedMeRequest<R>
impl<R: Request<Payload = GetMe>> IntoFuture for CachedMeRequest<R>
§type Output = Result<Me, <R as Request>::Err>
type Output = Result<Me, <R as Request>::Err>
The output that the future will produce on completion.
§type IntoFuture = Send<R>
type IntoFuture = Send<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
Auto Trait Implementations§
impl<R> Freeze for CachedMeRequest<R>where
R: Freeze,
impl<R> RefUnwindSafe for CachedMeRequest<R>where
R: RefUnwindSafe,
impl<R> Send for CachedMeRequest<R>where
R: Send,
impl<R> Sync for CachedMeRequest<R>where
R: Sync,
impl<R> Unpin for CachedMeRequest<R>where
R: Unpin,
impl<R> UnwindSafe for CachedMeRequest<R>where
R: 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<T> Erasable for T
impl<T> Erasable for T
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<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more