pub struct AgentHints {
pub cap_ms: Option<f32>,
pub priority: Option<f32>,
}Expand description
The accumulated hint state for one agent, folded from the EngineHints
the DCC has received. A None field means “no developer hint — use the
engine default”. Persists across ticks until overwritten by a newer hint.
Fields§
§cap_ms: Option<f32>Per-frame time-budget ceiling in milliseconds, if capped.
priority: Option<f32>Overridden negotiation priority weight, if reprioritized.
Implementations§
Source§impl AgentHints
impl AgentHints
Sourcepub fn apply(&mut self, hint: EngineHint)
pub fn apply(&mut self, hint: EngineHint)
Folds a single hint into this per-agent state (latest value wins per kind).
Trait Implementations§
Source§impl Clone for AgentHints
impl Clone for AgentHints
Source§fn clone(&self) -> AgentHints
fn clone(&self) -> AgentHints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentHints
impl Debug for AgentHints
Source§impl Default for AgentHints
impl Default for AgentHints
Source§fn default() -> AgentHints
fn default() -> AgentHints
Returns the “default value” for a type. Read more
Source§impl PartialEq for AgentHints
impl PartialEq for AgentHints
Source§fn eq(&self, other: &AgentHints) -> bool
fn eq(&self, other: &AgentHints) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AgentHints
impl StructuralPartialEq for AgentHints
Auto Trait Implementations§
impl Freeze for AgentHints
impl RefUnwindSafe for AgentHints
impl Send for AgentHints
impl Sync for AgentHints
impl Unpin for AgentHints
impl UnsafeUnpin for AgentHints
impl UnwindSafe for AgentHints
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
Mutably borrows from an owned value. Read more