pub struct ParkToken<'executor> { /* private fields */ }Expand description
Proof that the owner completed the executor-side park handshake.
Hold this value while attempting to block the owner in the task system. Its drop closes the handshake even when the park attempt is cancelled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'executor> !RefUnwindSafe for ParkToken<'executor>
impl<'executor> !Send for ParkToken<'executor>
impl<'executor> !Sync for ParkToken<'executor>
impl<'executor> !UnwindSafe for ParkToken<'executor>
impl<'executor> Freeze for ParkToken<'executor>
impl<'executor> Unpin for ParkToken<'executor>
impl<'executor> UnsafeUnpin for ParkToken<'executor>
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