pub struct ParkedWaiter {
uid: AtomicUsize,
}Fields§
§uid: AtomicUsizeImplementations§
Source§impl ParkedWaiter
impl ParkedWaiter
pub const fn new() -> Self
pub fn arm(&self, uid: usize) -> Result<(), Error>
pub fn disarm(&self)
Sourcepub fn park_current(&self) -> Result<(), Error>
pub fn park_current(&self) -> Result<(), Error>
Park the calling thread; returns EBUSY if another consumer is
already parked here.
Auto Trait Implementations§
impl !Freeze for ParkedWaiter
impl RefUnwindSafe for ParkedWaiter
impl Send for ParkedWaiter
impl Sync for ParkedWaiter
impl Unpin for ParkedWaiter
impl UnsafeUnpin for ParkedWaiter
impl UnwindSafe for ParkedWaiter
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