pub struct RateLimitConfig<PR, ReqTy, RespTy, IntoRespTy> { /* private fields */ }Implementations§
Source§impl<RP, ReqTy, RespTy, IntoRespTy> RateLimitConfig<RP, ReqTy, RespTy, IntoRespTy>
impl<RP, ReqTy, RespTy, IntoRespTy> RateLimitConfig<RP, ReqTy, RespTy, IntoRespTy>
pub fn new<EH>(rule_provider: RP, error_handler: EH) -> Self
pub fn on_success<H>(self, handler: H) -> Self
pub fn on_unruled<H>(self, handler: H) -> Self
Auto Trait Implementations§
impl<PR, ReqTy, RespTy, IntoRespTy> Freeze for RateLimitConfig<PR, ReqTy, RespTy, IntoRespTy>where
PR: Freeze,
impl<PR, ReqTy, RespTy, IntoRespTy> !RefUnwindSafe for RateLimitConfig<PR, ReqTy, RespTy, IntoRespTy>
impl<PR, ReqTy, RespTy, IntoRespTy> Send for RateLimitConfig<PR, ReqTy, RespTy, IntoRespTy>where
PR: Send,
impl<PR, ReqTy, RespTy, IntoRespTy> Sync for RateLimitConfig<PR, ReqTy, RespTy, IntoRespTy>where
PR: Sync,
impl<PR, ReqTy, RespTy, IntoRespTy> Unpin for RateLimitConfig<PR, ReqTy, RespTy, IntoRespTy>where
PR: Unpin,
impl<PR, ReqTy, RespTy, IntoRespTy> !UnwindSafe for RateLimitConfig<PR, ReqTy, RespTy, IntoRespTy>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more