pub struct RateLimit<S, PR, ReqTy, RespTy, IntoRespTy, C> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<S, PR, ReqTy, RespTy, IntoRespTy, C> Clone for RateLimit<S, PR, ReqTy, RespTy, IntoRespTy, C>
impl<S, PR, ReqTy, RespTy, IntoRespTy, C> Clone for RateLimit<S, PR, ReqTy, RespTy, IntoRespTy, C>
Source§impl<S, PR, ReqTy, RespTy, IntoRespTy, C> Service<ReqTy> for RateLimit<S, PR, ReqTy, RespTy, IntoRespTy, C>where
S: Service<ReqTy, Response = RespTy> + Clone + Send + 'static,
S::Future: Send + 'static,
S::Error: Send,
S::Response: Send,
PR: ProvideRule<ReqTy> + Clone + Send + Sync + 'static,
ReqTy: Send + 'static,
IntoRespTy: Into<RespTy> + 'static,
RespTy: 'static,
C: ConnectionLike + Clone + Send + 'static,
impl<S, PR, ReqTy, RespTy, IntoRespTy, C> Service<ReqTy> for RateLimit<S, PR, ReqTy, RespTy, IntoRespTy, C>where
S: Service<ReqTy, Response = RespTy> + Clone + Send + 'static,
S::Future: Send + 'static,
S::Error: Send,
S::Response: Send,
PR: ProvideRule<ReqTy> + Clone + Send + Sync + 'static,
ReqTy: Send + 'static,
IntoRespTy: Into<RespTy> + 'static,
RespTy: 'static,
C: ConnectionLike + Clone + Send + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Result<<S as Service<ReqTy>>::Response, <S as Service<ReqTy>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<S as Service<ReqTy>>::Response, <S as Service<ReqTy>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<S, PR, ReqTy, RespTy, IntoRespTy, C> Freeze for RateLimit<S, PR, ReqTy, RespTy, IntoRespTy, C>
impl<S, PR, ReqTy, RespTy, IntoRespTy, C> !RefUnwindSafe for RateLimit<S, PR, ReqTy, RespTy, IntoRespTy, C>
impl<S, PR, ReqTy, RespTy, IntoRespTy, C> Send for RateLimit<S, PR, ReqTy, RespTy, IntoRespTy, C>
impl<S, PR, ReqTy, RespTy, IntoRespTy, C> Sync for RateLimit<S, PR, ReqTy, RespTy, IntoRespTy, C>
impl<S, PR, ReqTy, RespTy, IntoRespTy, C> Unpin for RateLimit<S, PR, ReqTy, RespTy, IntoRespTy, C>
impl<S, PR, ReqTy, RespTy, IntoRespTy, C> !UnwindSafe for RateLimit<S, PR, ReqTy, RespTy, IntoRespTy, C>
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