pub struct SemaphoreWaiter<P: Priority> { /* private fields */ }Expand description
Opaque waiter type used for PriorityQueue entries.
This implements Priority and is the entry type used by Semaphore.
Trait Implementations§
Source§impl<P: Priority> Priority for SemaphoreWaiter<P>
Has the same priority as P except “held” entries always have higher priority than pending requesters
impl<P: Priority> Priority for SemaphoreWaiter<P>
Has the same priority as P except “held” entries always have higher priority than pending requesters
Auto Trait Implementations§
impl<P> !Freeze for SemaphoreWaiter<P>
impl<P> RefUnwindSafe for SemaphoreWaiter<P>where
P: RefUnwindSafe,
impl<P> Send for SemaphoreWaiter<P>where
P: Send,
impl<P> Sync for SemaphoreWaiter<P>where
P: Sync,
impl<P> Unpin for SemaphoreWaiter<P>where
P: Unpin,
impl<P> UnsafeUnpin for SemaphoreWaiter<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for SemaphoreWaiter<P>where
P: 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