Struct governor::middleware::NoOpMiddleware[][src]

pub struct NoOpMiddleware<P: Reference = <DefaultClock as Clock>::Instant> { /* fields omitted */ }
Expand description

A middleware that does nothing and returns () in the positive outcome.

Trait Implementations

Formats the value using the given formatter. Read more

By default, rate limiters return nothing other than an indicator that the element should be let through.

Returns () and has no side-effects.

Returns the error indicating what

The type that’s returned by the rate limiter when a cell is not allowed. 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.