pub struct CachedMeRequest<R>(/* private fields */)
where
R: Request<Payload = GetMe>;Available on crate feature
cache_me only.Trait Implementations§
Source§impl<R> HasPayload for CachedMeRequest<R>
impl<R> HasPayload for CachedMeRequest<R>
Source§fn payload_mut(&mut self) -> &mut <CachedMeRequest<R> as HasPayload>::Payload ⓘ
fn payload_mut(&mut self) -> &mut <CachedMeRequest<R> as HasPayload>::Payload ⓘ
Gain mutable access to the underlying payload.
Source§fn payload_ref(&self) -> &<CachedMeRequest<R> as HasPayload>::Payload ⓘ
fn payload_ref(&self) -> &<CachedMeRequest<R> as HasPayload>::Payload ⓘ
Gain immutable access to the underlying payload.
Source§impl<R> IntoFuture for CachedMeRequest<R>
impl<R> IntoFuture for CachedMeRequest<R>
Source§type Output = Result<BotFullInfo, <R as Request>::Err>
type Output = Result<BotFullInfo, <R as Request>::Err>
The output that the future will produce on completion.
Source§type IntoFuture = Send<R>
type IntoFuture = Send<R>
Which kind of future are we turning this into?
Source§fn into_future(self) -> <CachedMeRequest<R> as IntoFuture>::IntoFuture ⓘ
fn into_future(self) -> <CachedMeRequest<R> as IntoFuture>::IntoFuture ⓘ
Creates a future from a value. Read more
Auto Trait Implementations§
impl<R> Forget for CachedMeRequest<R>
impl<R> Freeze for CachedMeRequest<R>where
R: Freeze,
*const ArcInner<MeCache> is !null: Freeze,
PhantomData<ArcInner<MeCache>>: Freeze,
<R as IntoFuture>::IntoFuture == <R as Request>::Send,
<R as IntoFuture>::Output == Result<BotFullInfo, <R as Request>::Err>,
impl<R> Move for CachedMeRequest<R>
impl<R> RefUnwindSafe for CachedMeRequest<R>where
R: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
RwLock<Arc<OnceCell<BotFullInfo>>>: RefUnwindSafe,
<R as IntoFuture>::IntoFuture == <R as Request>::Send,
<R as IntoFuture>::Output == Result<BotFullInfo, <R as Request>::Err>,
impl<R> Send for CachedMeRequest<R>where
R: Send,
Arc<MeCache>: Send,
<R as IntoFuture>::IntoFuture == <R as Request>::Send,
<R as IntoFuture>::Output == Result<BotFullInfo, <R as Request>::Err>,
impl<R> Sync for CachedMeRequest<R>where
R: Sync,
Arc<MeCache>: Sync,
<R as IntoFuture>::IntoFuture == <R as Request>::Send,
<R as IntoFuture>::Output == Result<BotFullInfo, <R as Request>::Err>,
impl<R> Unpin for CachedMeRequest<R>where
R: Unpin,
Arc<MeCache>: Unpin,
<R as IntoFuture>::IntoFuture == <R as Request>::Send,
<R as IntoFuture>::Output == Result<BotFullInfo, <R as Request>::Err>,
impl<R> UnsafeUnpin for CachedMeRequest<R>where
R: UnsafeUnpin,
*const ArcInner<MeCache> is !null: UnsafeUnpin,
PhantomData<ArcInner<MeCache>>: UnsafeUnpin,
<R as IntoFuture>::IntoFuture == <R as Request>::Send,
<R as IntoFuture>::Output == Result<BotFullInfo, <R as Request>::Err>,
impl<R> UnwindSafe for CachedMeRequest<R>where
R: UnwindSafe,
Arc<MeCache>: UnwindSafe,
<R as IntoFuture>::IntoFuture == <R as Request>::Send,
<R as IntoFuture>::Output == Result<BotFullInfo, <R as Request>::Err>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Erasable for T
impl<T> Erasable for T
impl<P> GetMeSetters for Pwhere
P: HasPayload<Payload = GetMe>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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