Function teloxide::update_listeners::webhooks::axum_no_setup
source · pub fn axum_no_setup(
options: Options
) -> (impl UpdateListener<Err = Infallible>, impl Future<Output = ()>, Router)
Available on crate features
webhooks-axum
and webhooks
only.Expand description
Webhook implementation based on the axum framework that doesn’t perform any setup work.
Note about the stop-future
This function returns a future that is resolved when .stop()
is called on
a stop token of the update listener. Note that even if the future is not
used, after .stop()
is called, update listener will not produce new
updates.
See also
axum
and axum_to_router
for higher-level versions of this
function.