pub struct NoopConcurrencyManager;Expand description
No-op implementation that always allows requests to proceed without concurrency control
Trait Implementations§
Source§impl Clone for NoopConcurrencyManager
impl Clone for NoopConcurrencyManager
Source§fn clone(&self) -> NoopConcurrencyManager
fn clone(&self) -> NoopConcurrencyManager
Returns a duplicate 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<Res> ConcurrencyManager<Res> for NoopConcurrencyManagerwhere
Res: CacheableResponse + Send + 'static,
impl<Res> ConcurrencyManager<Res> for NoopConcurrencyManagerwhere
Res: CacheableResponse + Send + 'static,
Source§fn check(
&self,
_cache_key: &CacheKey,
_concurrency: BoundedU8<1, u8::MAX>,
) -> ConcurrencyDecision<Res>
fn check( &self, _cache_key: &CacheKey, _concurrency: BoundedU8<1, u8::MAX>, ) -> ConcurrencyDecision<Res>
Check if this request should proceed to upstream or await an existing request
Source§fn resolve(
&self,
_cache_key: &CacheKey,
_cache_value: &CacheValue<<Res as CacheableResponse>::Cached>,
)
fn resolve( &self, _cache_key: &CacheKey, _cache_value: &CacheValue<<Res as CacheableResponse>::Cached>, )
Notify waiting requests that the response is ready and return it back
Auto Trait Implementations§
impl Freeze for NoopConcurrencyManager
impl RefUnwindSafe for NoopConcurrencyManager
impl Send for NoopConcurrencyManager
impl Sync for NoopConcurrencyManager
impl Unpin for NoopConcurrencyManager
impl UnwindSafe for NoopConcurrencyManager
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