pub struct CombinedConcurrencyController { /* private fields */ }Implementations§
Source§impl CombinedConcurrencyController
impl CombinedConcurrencyController
pub fn new( exec_options: &Options, global_controller: Arc<ConcurrencyController>, ) -> Self
pub async fn acquire( &self, bytes_fn: Option<impl FnOnce() -> usize>, ) -> Result<CombinedConcurrencyControllerPermit, AcquireError>
pub async fn acquire_bytes_with_reservation( &self, bytes_fn: impl FnOnce() -> usize, ) -> Result<(Option<OwnedSemaphorePermit>, Option<OwnedSemaphorePermit>), AcquireError>
Auto Trait Implementations§
impl Freeze for CombinedConcurrencyController
impl !RefUnwindSafe for CombinedConcurrencyController
impl Send for CombinedConcurrencyController
impl Sync for CombinedConcurrencyController
impl Unpin for CombinedConcurrencyController
impl !UnwindSafe for CombinedConcurrencyController
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