Skip to content

Glossary: Rust in Practice

service

Also written: tower service, oneshot

In tower, anything that takes a request and returns a future of a response; an Axum `Router` is one, so `oneshot` can test it with a single request and no port.

Where the book teaches it

Related terms

middlewaretower