pub enum AgentImportance {
Critical,
Important,
Optional,
}Expand description
How critical an agent is for frame correctness — and therefore whether GORNA budget arbitration may skip it under pressure.
Critical and Important are non-negotiable: the scheduler never drops
them to save frame time. Work that must be deterministic — physics in a
simulation, or editor chrome once it owns a non-negotiable pass — lives here.
Only Optional work is negotiable (the budget escape valve).
Variants§
Critical
Must execute — non-negotiable, never skipped. Skipping causes errors or corruption.
Important
Should execute — non-negotiable under normal budget pressure (not skipped today).
Optional
Nice to have — negotiable: the first (and currently only) work the scheduler skips under budget pressure.
Implementations§
Source§impl AgentImportance
impl AgentImportance
Sourcepub fn is_negotiable(self) -> bool
pub fn is_negotiable(self) -> bool
Whether GORNA may skip this work under budget pressure. Only Optional
is negotiable; Critical and Important are non-negotiable (always run).
Trait Implementations§
Source§impl Clone for AgentImportance
impl Clone for AgentImportance
Source§fn clone(&self) -> AgentImportance
fn clone(&self) -> AgentImportance
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 AgentImportance
impl Debug for AgentImportance
Source§impl Ord for AgentImportance
impl Ord for AgentImportance
Source§fn cmp(&self, other: &AgentImportance) -> Ordering
fn cmp(&self, other: &AgentImportance) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AgentImportance
impl PartialEq for AgentImportance
Source§fn eq(&self, other: &AgentImportance) -> bool
fn eq(&self, other: &AgentImportance) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AgentImportance
impl PartialOrd for AgentImportance
impl Copy for AgentImportance
impl Eq for AgentImportance
impl StructuralPartialEq for AgentImportance
Auto Trait Implementations§
impl Freeze for AgentImportance
impl RefUnwindSafe for AgentImportance
impl Send for AgentImportance
impl Sync for AgentImportance
impl Unpin for AgentImportance
impl UnsafeUnpin for AgentImportance
impl UnwindSafe for AgentImportance
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.