We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c3eb75 commit cebbe48Copy full SHA for cebbe48
lib/middlewares/src/metering.rs
@@ -60,7 +60,11 @@ pub struct FunctionMetering<F: Fn(&Operator) -> u64 + Copy + Clone + Send + Sync
60
61
#[derive(Debug, PartialEq)]
62
pub enum MeteringPoints {
63
+ /// The given number of metering points is left for the execution.
64
+ /// If the value is 0, all points are consumed and but the execution was not terminated.
65
Remaining(u64),
66
+ /// The execution was terminated because the metering points were exhausted.
67
+ /// You can recover from this state by setting the points via `set_remaining_points` and restart the execution.
68
Exhausted,
69
}
70
0 commit comments