pub struct ConcurrencyLimit<T> { /* private fields */ }
Expand description
Enforces a limit on the concurrent number of requests the underlying service can handle.
Implementations§
Source§impl<T> ConcurrencyLimit<T>
impl<T> ConcurrencyLimit<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume self
, returning the inner service
Trait Implementations§
Source§impl<S> Clone for ConcurrencyLimit<S>where
S: Clone,
impl<S> Clone for ConcurrencyLimit<S>where
S: Clone,
Source§fn clone(&self) -> ConcurrencyLimit<S>
fn clone(&self) -> ConcurrencyLimit<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<T: Debug> Debug for ConcurrencyLimit<T>
impl<T: Debug> Debug for ConcurrencyLimit<T>
Source§impl<S> Load for ConcurrencyLimit<S>where
S: Load,
impl<S> Load for ConcurrencyLimit<S>where
S: Load,
Auto Trait Implementations§
impl<T> Freeze for ConcurrencyLimit<T>where
T: Freeze,
impl<T> !RefUnwindSafe for ConcurrencyLimit<T>
impl<T> Send for ConcurrencyLimit<T>where
T: Send,
impl<T> Sync for ConcurrencyLimit<T>where
T: Sync,
impl<T> Unpin for ConcurrencyLimit<T>where
T: Unpin,
impl<T> !UnwindSafe for ConcurrencyLimit<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)