pub struct FlowConfig {
pub lock_patterns: Vec<String>,
pub read_only_patterns: Vec<String>,
pub max_depth: u8,
pub turbulence_threshold: f32,
pub include_paths: bool,
pub max_particles: u32,
pub min_edge_weight: f32,
pub max_total_steps: usize,
pub scope_filter: Option<String>,
}Expand description
Configuration for the flow simulation engine.
Fields§
§lock_patterns: Vec<String>Patterns used to identify lock/synchronization nodes.
read_only_patterns: Vec<String>Patterns used to identify read-only access nodes.
max_depth: u8Maximum BFS depth per particle.
turbulence_threshold: f32Minimum turbulence score to include in results.
include_paths: boolWhether to record full path traces per particle.
max_particles: u32Maximum particles per entry point (capped at MAX_PARTICLES).
min_edge_weight: f32Minimum edge weight to traverse — edges below this are skipped.
max_total_steps: usizeGlobal step budget across all particles (default 50000).
scope_filter: Option<String>Optional substring filter to limit particle scope to matching node labels.
Implementations§
Source§impl FlowConfig
impl FlowConfig
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create config with default lock and read-only pattern strings.
Sourcepub fn with_patterns(
lock_patterns: &[String],
read_only_patterns: &[String],
) -> Self
pub fn with_patterns( lock_patterns: &[String], read_only_patterns: &[String], ) -> Self
Create config with user-provided pattern strings.
Trait Implementations§
Source§impl Clone for FlowConfig
impl Clone for FlowConfig
Source§fn clone(&self) -> FlowConfig
fn clone(&self) -> FlowConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 FlowConfig
impl Debug for FlowConfig
Auto Trait Implementations§
impl Freeze for FlowConfig
impl RefUnwindSafe for FlowConfig
impl Send for FlowConfig
impl Sync for FlowConfig
impl Unpin for FlowConfig
impl UnsafeUnpin for FlowConfig
impl UnwindSafe for FlowConfig
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