Enum rocket_governor::LimitError [−][src]
pub enum LimitError { Error, GovernedRequest(u64), MissingClientIpAddr, MissingRoute, MissingRouteName, }
Expand description
Errors for governed requests which implement Responder.
Variants
Any other undefined LimitError
GovernedRequest(u64)
Governed request for the next provided seconds.
There is no remote client IP address known in the request. Might be a misconfigured server environment.
Route is not available which might be only the case in fairings
There is a route without name and this can not be matched for rate limiting
Trait Implementations
Returns Ok
if a Response
could be generated successfully. Otherwise,
returns an Err
with a failing Status
. Read more
Auto Trait Implementations
impl RefUnwindSafe for LimitError
impl Send for LimitError
impl Sync for LimitError
impl Unpin for LimitError
impl UnwindSafe for LimitError
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