pub struct CachedParkThread { /* private fields */ }
Expand description
Blocks the current thread using a condition variable.
Implementations§
Source§impl CachedParkThread
impl CachedParkThread
Sourcepub fn new() -> CachedParkThread
pub fn new() -> CachedParkThread
Create a new ParkThread
handle for the current thread.
This type cannot be moved to other threads, so it should be created on the thread that the caller intends to park.
Trait Implementations§
Source§impl Debug for CachedParkThread
impl Debug for CachedParkThread
Auto Trait Implementations§
impl Freeze for CachedParkThread
impl RefUnwindSafe for CachedParkThread
impl !Send for CachedParkThread
impl !Sync for CachedParkThread
impl Unpin for CachedParkThread
impl UnwindSafe for CachedParkThread
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