Module apollo_router::layers::async_checkpoint
source · Expand description
Asynchronous Checkpoint
Provides a general mechanism for controlling the flow of a request. Useful in any situation where the caller wishes to provide control flow for a request.
If the evaluated closure succeeds then the request is passed onto the next service in the chain of responsibilities. If it fails, then the control flow is broken and a response is passed back to the invoking service.
See [Layer] and Service for more details.
Structs
- [
Layer] for Asynchronous Checkpoints. SeeServiceBuilderExt::checkpoint_async(). Servicefor Asynchronous Checkpoints. SeeServiceBuilderExt::checkpoint_async().- [
Layer] for OneShot (single use) Asynchronous Checkpoints. SeeServiceBuilderExt::oneshot_checkpoint_async(). Servicefor OneShot (single use) Asynchronous Checkpoints. SeeServiceBuilderExt::oneshot_checkpoint_async().