Struct governor::middleware::StateSnapshot [−][src]
pub struct StateSnapshot { /* fields omitted */ }
Expand description
Information about the rate-limiting state used to reach a decision.
Implementations
Returns the number of cells that can be let through in addition to a (possible) positive outcome.
If this state snapshot is based on a negative rate limiting outcome, this method returns 0.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StateSnapshot
impl Send for StateSnapshot
impl Sync for StateSnapshot
impl Unpin for StateSnapshot
impl UnwindSafe for StateSnapshot
Blanket Implementations
Mutably borrows from an owned value. Read more