pub struct WaitMember<'group> { /* private fields */ }Expand description
A wait object owned by a CleanupGroup.
Behaves like ThreadpoolWait but is released by the group rather than by
its own drop, and the watched handle is owned by the group.
Implementations§
Source§impl WaitMember<'_>
impl WaitMember<'_>
Sourcepub fn handle(&self) -> BorrowedHandle<'_>
pub fn handle(&self) -> BorrowedHandle<'_>
Borrow the watched handle, for signalling or inspecting it.
Sourcepub fn arm(&self, timeout: Option<Duration>)
pub fn arm(&self, timeout: Option<Duration>)
Arm the wait, so the next signal or timeout runs the callback once.
Sourcepub fn cancel_pending(&self)
pub fn cancel_pending(&self)
Cancel callbacks that have not started, then wait for those that have.
Trait Implementations§
Source§impl<'group> Debug for WaitMember<'group>
impl<'group> Debug for WaitMember<'group>
impl Send for WaitMember<'_>
impl Sync for WaitMember<'_>
Auto Trait Implementations§
impl<'group> Freeze for WaitMember<'group>
impl<'group> RefUnwindSafe for WaitMember<'group>
impl<'group> Unpin for WaitMember<'group>
impl<'group> UnsafeUnpin for WaitMember<'group>
impl<'group> UnwindSafe for WaitMember<'group>
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