pub unsafe trait Park:
'static
+ Send
+ Sync {
// Required methods
fn new() -> Self;
fn park();
fn unpark(&self);
}Expand description
An handle used to unpark a thread.
Note that thread need not mean std::thread::Thread but could be any number of
user/kernal thread implementations.
An implementation for std::thread::Thread is available behind the std feature.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.