pub enum BufferPolicy {
DropOldest,
SoftAndon,
AndonCord,
}Expand description
Buffer overflow policy per Jidoka principle.
Per Dunlap (2002): “A trace with missing input events is worse than no trace at all.”
Variants§
DropOldest
Production mode: drop oldest events on overflow (preserves responsiveness).
SoftAndon
v1.3: Soft Andon - drop oldest but show visual indicator (MacKenzie & Ware 1993). This preserves game responsiveness while making trace loss impossible to ignore.
AndonCord
Debug mode: block game loop until buffer drains (preserves correctness). This is intentional per Jidoka - “Stop the Line” when quality is at risk.
Trait Implementations§
Source§impl Clone for BufferPolicy
impl Clone for BufferPolicy
Source§fn clone(&self) -> BufferPolicy
fn clone(&self) -> BufferPolicy
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 BufferPolicy
impl Debug for BufferPolicy
Source§impl Default for BufferPolicy
impl Default for BufferPolicy
Source§fn default() -> BufferPolicy
fn default() -> BufferPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for BufferPolicy
impl PartialEq for BufferPolicy
impl Copy for BufferPolicy
impl Eq for BufferPolicy
impl StructuralPartialEq for BufferPolicy
Auto Trait Implementations§
impl Freeze for BufferPolicy
impl RefUnwindSafe for BufferPolicy
impl Send for BufferPolicy
impl Sync for BufferPolicy
impl Unpin for BufferPolicy
impl UnwindSafe for BufferPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more