pub struct ActorConfig {
pub max_actors: usize,
pub decay_interval_secs: u64,
pub persist_interval_secs: u64,
pub correlation_threshold: f64,
pub risk_decay_factor: f64,
pub max_rule_matches: usize,
pub max_session_ids: usize,
pub max_fingerprints_per_actor: usize,
pub max_fingerprint_mappings: usize,
pub enabled: bool,
pub max_risk: f64,
}Expand description
Configuration for ActorManager.
Fields§
§max_actors: usizeMaximum number of actors to track (LRU eviction when exceeded). Default: 100,000
decay_interval_secs: u64Interval in seconds between decay cycles. Default: 900 (15 minutes)
persist_interval_secs: u64Interval in seconds between persistence cycles. Default: 300 (5 minutes)
correlation_threshold: f64Threshold for correlation confidence. Default: 0.7
risk_decay_factor: f64Factor by which risk scores decay each cycle. Default: 0.9
max_rule_matches: usizeMaximum number of rule matches to track per actor. Default: 100
max_session_ids: usizeMaximum number of session IDs to track per actor. Prevents memory exhaustion from session hijacking attacks. Default: 50
max_fingerprints_per_actor: usizeMaximum number of fingerprints to track per actor. Prevents memory exhaustion from fingerprint flooding attacks. Default: 20
max_fingerprint_mappings: usizeMaximum number of global fingerprint-to-actor mappings. Prevents memory exhaustion from unique fingerprint attacks. Default: 500,000 (5x max_actors)
enabled: boolWhether actor tracking is enabled. Default: true
max_risk: f64Maximum risk score (default: 100.0).
Trait Implementations§
Source§impl Clone for ActorConfig
impl Clone for ActorConfig
Source§fn clone(&self) -> ActorConfig
fn clone(&self) -> ActorConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ActorConfig
impl Debug for ActorConfig
Auto Trait Implementations§
impl Freeze for ActorConfig
impl RefUnwindSafe for ActorConfig
impl Send for ActorConfig
impl Sync for ActorConfig
impl Unpin for ActorConfig
impl UnsafeUnpin for ActorConfig
impl UnwindSafe for ActorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more