Struct governor::middleware::StateInformationMiddleware[][src]

pub struct StateInformationMiddleware;
Expand description

Middleware that returns the state of the rate limiter if a positive decision is reached.

Trait Implementations

Formats the value using the given formatter. Read more

The state snapshot returned from the limiter.

The type that’s returned by the rate limiter when a cell is not allowed. Read more

Called when a positive rate-limiting decision is made. Read more

Called when a negative rate-limiting decision is made (the “not allowed but OK” case). Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.