pub trait RequesterExt: Requester {
    fn cache_me(self) -> CacheMe<Self> 
    where
        Self: Sized
, { ... } fn auto_send(self) -> AutoSend<Self>
    where
        Self: Sized
, { ... } fn erase<'a>(self) -> ErasedRequester<'a, Self::Err>
    where
        Self: 'a + Sized
, { ... } fn trace(self, settings: Settings) -> Trace<Self>
    where
        Self: Sized
, { ... } fn throttle(self, limits: Limits) -> Throttle<Self>
    where
        Self: Sized + Clone + Send + Sync + 'static,
        Self::Err: AsResponseParameters,
        Self::GetChat: Send
, { ... } fn parse_mode(self, parse_mode: ParseMode) -> DefaultParseMode<Self>
    where
        Self: Sized
, { ... } }
Expand description

Extensions methods for Requester.

Provided Methods§

Available on crate feature cache_me only.

Add get_me caching ability, see CacheMe for more.

👎Deprecated since 0.8.0: AutoSend is no longer required to .await requests and is now noop
Available on crate feature auto_send only.

Send requests automatically, see AutoSend for more.

Available on crate feature erased only.

Erase requester type.

Available on crate feature trace_adaptor only.

Trace requests, see Trace for more.

Available on crate feature throttle only.

Add throttling ability, see Throttle for more.

Note: this spawns the worker, just as Throttle::new_spawn.

Implementors§