Struct lemmy_utils::rate_limit::RateLimited [−][src]
pub struct RateLimited { /* fields omitted */ }
Implementations
Trait Implementations
impl<S> Transform<S, ServiceRequest> for RateLimited where
S: Service<ServiceRequest, Response = ServiceResponse, Error = Error>,
S::Future: 'static,
impl<S> Transform<S, ServiceRequest> for RateLimited where
S: Service<ServiceRequest, Response = ServiceResponse, Error = Error>,
S::Future: 'static,
type Response = S::Response
type Response = S::Response
Responses produced by the service.
type Transform = RateLimitedMiddleware<S>
type Transform = RateLimitedMiddleware<S>
The TransformService
value created by this factory
Creates and returns a new Transform component, asynchronously
Auto Trait Implementations
impl !RefUnwindSafe for RateLimited
impl Send for RateLimited
impl Sync for RateLimited
impl Unpin for RateLimited
impl !UnwindSafe for RateLimited
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more