pub enum ChannelCriticality {
Low,
Normal,
High,
}Expand description
Priority tier for a channel in the unified priority-sort send loop.
Each message’s accumulator grows per tick by base_gain() × tick-age.
Higher criticality → faster accumulator growth → earlier eligibility in the
sorted drain. Reliable channels never drop items; criticality only changes
when they egress relative to other channels and entity bundles.
Variants§
Low
Background traffic (e.g. non-urgent unreliable). base_gain() = 0.5.
Normal
Default tier. base_gain() = 1.0.
High
Control traffic that must head the queue (e.g. auth, connection
lifecycle, critical RPCs). base_gain() = 10.0.
Implementations§
Source§impl ChannelCriticality
impl ChannelCriticality
Sourcepub const fn default_for(mode: &ChannelMode) -> Self
pub const fn default_for(mode: &ChannelMode) -> Self
Default tier applied by ChannelSettings::new based on channel mode.
TickBuffered → High (must land in the right tick window). Everything
else → Normal. Callers can override via with_criticality().
Trait Implementations§
Source§impl Clone for ChannelCriticality
impl Clone for ChannelCriticality
Source§fn clone(&self) -> ChannelCriticality
fn clone(&self) -> ChannelCriticality
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChannelCriticality
impl Debug for ChannelCriticality
Source§impl PartialEq for ChannelCriticality
impl PartialEq for ChannelCriticality
Source§fn eq(&self, other: &ChannelCriticality) -> bool
fn eq(&self, other: &ChannelCriticality) -> bool
self and other values to be equal, and is used by ==.