pub enum WaitStrategy {
PauseSpin,
Waitpkg,
}Expand description
Wait strategy chosen at runtime per CPUID.
Variants§
PauseSpin
std::hint::spin_loop (PAUSE on x86). Universally
available fallback.
Waitpkg
UMONITOR + UMWAIT. Available on Intel Tremont /
Tiger Lake+ and AMD Zen 5+; detected via CPUID leaf 7 ECX
bit 5.
Implementations§
Source§impl WaitStrategy
impl WaitStrategy
Trait Implementations§
Source§impl Clone for WaitStrategy
impl Clone for WaitStrategy
Source§fn clone(&self) -> WaitStrategy
fn clone(&self) -> WaitStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WaitStrategy
Source§impl Debug for WaitStrategy
impl Debug for WaitStrategy
impl Eq for WaitStrategy
Source§impl PartialEq for WaitStrategy
impl PartialEq for WaitStrategy
impl StructuralPartialEq for WaitStrategy
Auto Trait Implementations§
impl Freeze for WaitStrategy
impl RefUnwindSafe for WaitStrategy
impl Send for WaitStrategy
impl Sync for WaitStrategy
impl Unpin for WaitStrategy
impl UnsafeUnpin for WaitStrategy
impl UnwindSafe for WaitStrategy
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