fn try_issue(inner: Arc<Mutex<PermitsInner>>) -> Option<Self> {
        match inner.try_lock().map(|mut l| l.try_get().ok()) {
            Ok(Some(())) => {}
            _ => return None,
        };
        Some(Self { inner: Some(inner.clone()), committed: Arc::new(AtomicBool::new(true)) })
    }
/// Issues a permit using the given `inner`. Returns none if there are no permits available or
/// in the case of lock contention.
Issues a permit using the given `inner`. Returns none if there are no permits available or
in the case of lock contention.
Issues a permit using the given ` inner ` . Returns none if there are no permits available or in the case of lock contention .
fn try_issue(inner: Arc<Mutex<PermitsInner>>) -> Option<Self> {
        match inner.try_lock().map(|mut l| l.try_get().ok()) {
            Ok(Some(())) => {}
            _ => return None,
        };
        Some(Self { inner: Some(inner.clone()), committed: Arc::new(AtomicBool::new(true)) })
    }
fn try_issue ( inner : Arc < Mutex < PermitsInner > > ) -> Option < Self > { match inner . try_lock ( ) . map ( | mut l | l . try_get ( ) . ok ( ) ) { Ok ( Some ( ( ) ) ) => { } _ => return None , } ; Some ( Self { inner : Some ( inner . clone ( ) ) , committed : Arc :: new ( AtomicBool :: new ( true ) ) } ) }
Issues a permit using the given `inner`.
Issues a permit using the given ` inner ` .
inner
Arc<Mutex<PermitsInner>>
inner
Arc<Mutex<PermitsInner>>