pub enum WaitPreset {
MaxPerfSpin,
StdBackoff,
Yield,
}Expand description
Wait/backoff policy presets for SingleRing hot loops.
These presets are intentionally minimal and deterministic:
MaxPerfSpin: spin-first strategy for isolated CPUs.StdBackoff: cooperative backoff for non-HFT deployments.Yield: cooperative yield-only waiting for shared-host runs.
Variants§
MaxPerfSpin
Max-perf preset: spin-first waiting.
StdBackoff
Default backoff preset (std-only): yields/sleeps as needed.
Yield
Yield-only preset (std-only).
Trait Implementations§
Source§impl Clone for WaitPreset
impl Clone for WaitPreset
Source§fn clone(&self) -> WaitPreset
fn clone(&self) -> WaitPreset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaitPreset
impl Debug for WaitPreset
Source§impl PartialEq for WaitPreset
impl PartialEq for WaitPreset
impl Copy for WaitPreset
impl Eq for WaitPreset
impl StructuralPartialEq for WaitPreset
Auto Trait Implementations§
impl Freeze for WaitPreset
impl RefUnwindSafe for WaitPreset
impl Send for WaitPreset
impl Sync for WaitPreset
impl Unpin for WaitPreset
impl UnwindSafe for WaitPreset
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