Trait teloxide::requests::RequesterExt
source · 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§
sourcefn cache_me(self) -> CacheMe<Self> ⓘwhere
Self: Sized,
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.
sourcefn auto_send(self) -> AutoSend<Self> ⓘwhere
Self: Sized,
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 noopAvailable on crate feature
auto_send
only.Send requests automatically, see AutoSend
for more.
sourcefn erase<'a>(self) -> ErasedRequester<'a, Self::Err> ⓘwhere
Self: 'a + Sized,
fn erase<'a>(self) -> ErasedRequester<'a, Self::Err> ⓘwhere Self: 'a + Sized,
Available on crate feature
erased
only.Erase requester type.
sourcefn trace(self, settings: Settings) -> Trace<Self> ⓘwhere
Self: Sized,
fn trace(self, settings: Settings) -> Trace<Self> ⓘwhere Self: Sized,
Available on crate feature
trace_adaptor
only.Trace requests, see Trace
for more.
sourcefn throttle(self, limits: Limits) -> Throttle<Self> ⓘwhere
Self: Sized + Clone + Send + Sync + 'static,
Self::Err: AsResponseParameters,
Self::GetChat: Send,
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
.
sourcefn parse_mode(self, parse_mode: ParseMode) -> DefaultParseMode<Self> ⓘwhere
Self: Sized,
fn parse_mode(self, parse_mode: ParseMode) -> DefaultParseMode<Self> ⓘwhere Self: Sized,
Specifies default ParseMode
, which will be used during all calls to: