pub struct LinkState {
pub flow: f64,
pub status: LinkStatus,
pub setting: f64,
pub quality: f64,
pub reaction_rate: f64,
}Expand description
Per-step hydraulic and quality state for a single link (§2.6, per-step fields).
Fields§
§flow: f64Volumetric flow rate (m³/s; positive = from_node → to_node).
status: LinkStatusCurrent operational status.
setting: f64Current setting value (pump speed ratio or valve pressure setpoint).
quality: f64Water quality in this link.
reaction_rate: f64Volume-weighted average reaction rate (mass/L/day); only meaningful for pipes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkState
impl RefUnwindSafe for LinkState
impl Send for LinkState
impl Sync for LinkState
impl Unpin for LinkState
impl UnsafeUnpin for LinkState
impl UnwindSafe for LinkState
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