pub struct AgentProfilesConfig {
pub active: String,
pub auto_detect_window: usize,
pub variants: BTreeMap<String, AgentProfile>,
}Fields§
§active: String§auto_detect_window: usizeHow many events to observe before auto-classifying the agent profile.
variants: BTreeMap<String, AgentProfile>Implementations§
Source§impl AgentProfilesConfig
impl AgentProfilesConfig
Sourcepub fn resolve<'a>(&'a self, stats: &SessionStats) -> &'a AgentProfile
pub fn resolve<'a>(&'a self, stats: &SessionStats) -> &'a AgentProfile
Pick a variant for the given session statistics. "auto" triggers
rule-based classification; an explicit active value short-circuits.
Trait Implementations§
Source§impl Clone for AgentProfilesConfig
impl Clone for AgentProfilesConfig
Source§fn clone(&self) -> AgentProfilesConfig
fn clone(&self) -> AgentProfilesConfig
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 AgentProfilesConfig
impl Debug for AgentProfilesConfig
Source§impl Default for AgentProfilesConfig
impl Default for AgentProfilesConfig
Source§impl<'de> Deserialize<'de> for AgentProfilesConfig
impl<'de> Deserialize<'de> for AgentProfilesConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentProfilesConfig
impl RefUnwindSafe for AgentProfilesConfig
impl Send for AgentProfilesConfig
impl Sync for AgentProfilesConfig
impl Unpin for AgentProfilesConfig
impl UnsafeUnpin for AgentProfilesConfig
impl UnwindSafe for AgentProfilesConfig
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