pub struct CovInFlightTracker { /* private fields */ }Expand description
Tracker for concurrent in-flight confirmed notifications per peer.
Implementations§
Source§impl CovInFlightTracker
impl CovInFlightTracker
Sourcepub fn try_acquire(
self: &Arc<Self>,
peer: CovRecipient,
max_per_peer: usize,
global_semaphore: &Arc<Semaphore>,
) -> Result<CovInFlightGuard, InFlightAcquireError>
pub fn try_acquire( self: &Arc<Self>, peer: CovRecipient, max_per_peer: usize, global_semaphore: &Arc<Semaphore>, ) -> Result<CovInFlightGuard, InFlightAcquireError>
Attempt to acquire an in-flight confirmed notification slot.
Trait Implementations§
Source§impl Debug for CovInFlightTracker
impl Debug for CovInFlightTracker
Auto Trait Implementations§
impl !Freeze for CovInFlightTracker
impl RefUnwindSafe for CovInFlightTracker
impl Send for CovInFlightTracker
impl Sync for CovInFlightTracker
impl Unpin for CovInFlightTracker
impl UnsafeUnpin for CovInFlightTracker
impl UnwindSafe for CovInFlightTracker
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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