Crate sentinel_macros

Source
Expand description

This crate supplies out-of-the-box attribute macors to ease sentinel usage.
It depends on the [sentinel-core] crate. Currently, only one sentinel attribute macro is permited to added on a single function.

Attribute Macros§

circuitbreaker
Use this attribute macro to create the sentinel on your functions/methods. It wraps the task’s ReturnType with Result to indicate whether the task is blocked
flow
Use this attribute macro to create the sentinel on your functions/methods. It wraps the task’s ReturnType with Result to indicate whether the task is blocked
hotspot
Use this attribute macro to create the sentinel on your functions/methods. It wraps the task’s ReturnType with Result to indicate whether the task is blocked
isolation
Use this attribute macro to create the sentinel on your functions/methods. It wraps the task’s ReturnType with Result to indicate whether the task is blocked
system
Use this attribute macro to create the sentinel on your functions/methods. It wraps the task’s ReturnType with Result to indicate whether the task is blocked