pub struct ConcurrencyLimiterService<S> { /* private fields */ }
Expand description
The implementation of basic concurrency limiter as [volo::Service].
For the informations and notices, see the documentation page of this crate.
Trait Implementations§
source§impl<S: Clone> Clone for ConcurrencyLimiterService<S>
impl<S: Clone> Clone for ConcurrencyLimiterService<S>
source§fn clone(&self) -> ConcurrencyLimiterService<S>
fn clone(&self) -> ConcurrencyLimiterService<S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Cx, Req, S> Service<Cx, Req> for ConcurrencyLimiterService<S>where
Req: Debug + Send + 'static,
S: Send + 'static + Service<Cx, Req> + Sync,
Cx: Send + 'static,
ConcurrencyLimitError: Into<S::Error>,
impl<Cx, Req, S> Service<Cx, Req> for ConcurrencyLimiterService<S>where Req: Debug + Send + 'static, S: Send + 'static + Service<Cx, Req> + Sync, Cx: Send + 'static, ConcurrencyLimitError: Into<S::Error>,
Auto Trait Implementations§
impl<S> RefUnwindSafe for ConcurrencyLimiterService<S>where S: RefUnwindSafe,
impl<S> Send for ConcurrencyLimiterService<S>where S: Send,
impl<S> Sync for ConcurrencyLimiterService<S>where S: Sync,
impl<S> Unpin for ConcurrencyLimiterService<S>where S: Unpin,
impl<S> UnwindSafe for ConcurrencyLimiterService<S>where S: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T, Cx, Req> ServiceExt<Cx, Req> for Twhere
T: Service<Cx, Req>,
impl<T, Cx, Req> ServiceExt<Cx, Req> for Twhere T: Service<Cx, Req>,
§fn map_err<E, F>(self, f: F) -> MapErr<T, F>where
F: FnOnce(<T as Service<Cx, Req>>::Error) -> E,
fn map_err<E, F>(self, f: F) -> MapErr<T, F>where F: FnOnce(<T as Service<Cx, Req>>::Error) -> E,
Maps this service’s error value to a different value. Read more
§fn map_response<F, Response>(self, f: F) -> MapResponse<T, F>where
F: FnOnce(<T as Service<Cx, Req>>::Response) -> Response,
fn map_response<F, Response>(self, f: F) -> MapResponse<T, F>where F: FnOnce(<T as Service<Cx, Req>>::Response) -> Response,
Maps this service’s response value to a different value. Read more