Struct rocket_governor::RocketGovernor [−][src]
pub struct RocketGovernor<'r, T> where
T: RocketGovernable<'r>, { /* fields omitted */ }
Expand description
Generic RocketGovernor implementation.
rocket_governor is a rocket guard implementation of the governor rate limiter.
Declare a struct and use it with the generic RocketGovernor guard. This requires to implement RocketGovernable for your struct.
See the top level crate documentation.
Auto Trait Implementations
impl<'r, T> RefUnwindSafe for RocketGovernor<'r, T> where
T: RefUnwindSafe,
impl<'r, T> Send for RocketGovernor<'r, T> where
T: Sync,
impl<'r, T> Sync for RocketGovernor<'r, T> where
T: Sync,
impl<'r, T> Unpin for RocketGovernor<'r, T>
impl<'r, T> UnwindSafe for RocketGovernor<'r, T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn vzip(self) -> V