pub trait ThreadEvent: Sync + Default {
// Required methods
fn is_set(&self) -> bool;
fn reset(&self);
fn wait(&self);
fn set(&self);
}Expand description
Abstraction which provides a method of blocking and unblocking threads through the interface of a manual reset event.
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.