pub struct EventWaitGuard<'a> { /* private fields */ }
Expand description
A guard object to enforce that clients call begin_wait
before block_until
.
Implementations§
Source§impl<'a> EventWaitGuard<'a>
impl<'a> EventWaitGuard<'a>
Sourcepub fn event(&self) -> &'a Arc<InterruptibleEvent>
pub fn event(&self) -> &'a Arc<InterruptibleEvent>
The underlying event associated with this guard.
Sourcepub fn block_until(self, deadline: MonotonicInstant) -> Result<(), WakeReason>
pub fn block_until(self, deadline: MonotonicInstant) -> Result<(), WakeReason>
Block the thread until either deadline
expires, the event is notified, or the event is
interrupted.
Auto Trait Implementations§
impl<'a> Freeze for EventWaitGuard<'a>
impl<'a> RefUnwindSafe for EventWaitGuard<'a>
impl<'a> Send for EventWaitGuard<'a>
impl<'a> Sync for EventWaitGuard<'a>
impl<'a> Unpin for EventWaitGuard<'a>
impl<'a> UnwindSafe for EventWaitGuard<'a>
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