pub struct Gate { /* private fields */ }Expand description
A priority admission gate with a fixed number of permits.
Implementations§
Auto Trait Implementations§
impl !Freeze for Gate
impl Forget for Gate
impl Move for Gate
impl RefUnwindSafe for Gatewhere
Mutex<State>: RefUnwindSafe,
impl Send for Gate
impl Sync for Gate
impl Unpin for Gate
impl UnsafeUnpin for Gatewhere
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const LeafNode<WaitKey, Option<Waker>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(WaitKey, Option<Waker>)>>: UnsafeUnpin,
*const LeafNode<WaitKey, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(WaitKey, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for Gatewhere
Mutex<State>: UnwindSafe,
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