pub trait RequesterExt: Requester {
    // Provided methods
    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§

source

fn cache_me(self) -> CacheMe<Self> where Self: Sized,

Available on crate feature cache_me only.

Add get_me caching ability, see CacheMe for more.

source

fn auto_send(self) -> AutoSend<Self> where Self: Sized,

👎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.

source

fn erase<'a>(self) -> ErasedRequester<'a, Self::Err> where Self: 'a + Sized,

Available on crate feature erased only.

Erase requester type.

source

fn trace(self, settings: Settings) -> Trace<Self> where Self: Sized,

Available on crate feature trace_adaptor only.

Trace requests, see Trace for more.

source

fn throttle(self, limits: Limits) -> Throttle<Self> where Self: Sized + Clone + Send + Sync + 'static, Self::Err: AsResponseParameters, Self::GetChat: Send,

Available on crate feature throttle only.

Add throttling ability, see Throttle for more.

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

source

fn parse_mode(self, parse_mode: ParseMode) -> DefaultParseMode<Self> where Self: Sized,

Implementors§

source§

impl<T> RequesterExt for Twhere T: Requester,