#[non_exhaustive]pub enum PerformanceClass {
InteractiveDispatch,
DurablePerEvent,
PostGameBatch,
}Expand description
Performance class determining latency target and delivery path.
See the feature spec performance classes for details.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InteractiveDispatch
Class 1: local-only, ≤ 100 ms latency. Also accumulated for Class 3.
DurablePerEvent
Class 2: persisted to disk queue, uploaded individually, ≤ 1 s.
PostGameBatch
Class 3: triggers assembly and upload of the complete game batch.
Implementations§
Source§impl PerformanceClass
impl PerformanceClass
Sourcepub fn as_class_number(&self) -> u8
pub fn as_class_number(&self) -> u8
Returns the numeric class identifier (1, 2, or 3).
Useful for logging, metrics, and wire-format tagging where a compact integer representation is preferred over the enum variant name.
Sourcepub fn requires_durable_storage(&self) -> bool
pub fn requires_durable_storage(&self) -> bool
Returns true if events in this class must be persisted to durable
storage (disk queue or disk-backed buffer) before being considered
processed.
Class 2 events are individually persisted to a disk queue for per-event upload. Class 3 events trigger batch assembly from a disk-backed game buffer. Class 1 events are local-only and do not require durable storage (though they are also accumulated into the Class 3 buffer asynchronously).
Sourcepub fn is_batch_trigger(&self) -> bool
pub fn is_batch_trigger(&self) -> bool
Returns true if this class triggers post-game batch assembly.
Only Class 3 (PostGameBatch) triggers the assembly and upload of
the accumulated game buffer. Downstream consumers use this to know
when to finalize and ship the game record.
Trait Implementations§
Source§impl Clone for PerformanceClass
impl Clone for PerformanceClass
Source§fn clone(&self) -> PerformanceClass
fn clone(&self) -> PerformanceClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PerformanceClass
Source§impl Debug for PerformanceClass
impl Debug for PerformanceClass
Source§impl<'de> Deserialize<'de> for PerformanceClass
impl<'de> Deserialize<'de> for PerformanceClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PerformanceClass
Source§impl Hash for PerformanceClass
impl Hash for PerformanceClass
Source§impl PartialEq for PerformanceClass
impl PartialEq for PerformanceClass
Source§fn eq(&self, other: &PerformanceClass) -> bool
fn eq(&self, other: &PerformanceClass) -> bool
self and other values to be equal, and is used by ==.