pub enum LinkQuantity {
Flow,
MeanVelocity,
UnitHeadLoss,
FrictionFactor,
Quality,
Status,
Setting,
}Expand description
Link result quantities available via get_link_result (§8.2.1).
Variants§
Flow
Flow rate (internal volume/time unit; positive = from→to).
MeanVelocity
Mean velocity = flow / (π(D/2)²) (internal length/time unit; pipes only; else 0).
UnitHeadLoss
Unit head loss = |Δh| / length (pipes only; else 0).
FrictionFactor
Darcy–Weisbach friction factor (DW formula only; pipes only; else 0).
Quality
Water quality (units depend on quality_mode).
Status
Link status as a float: 0 = Closed, 1 = Open, 2 = Active.
Setting
Link setting (pump speed fraction or valve pressure setting).
Trait Implementations§
Source§impl Clone for LinkQuantity
impl Clone for LinkQuantity
Source§fn clone(&self) -> LinkQuantity
fn clone(&self) -> LinkQuantity
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 moreimpl Copy for LinkQuantity
Source§impl Debug for LinkQuantity
impl Debug for LinkQuantity
impl Eq for LinkQuantity
Source§impl PartialEq for LinkQuantity
impl PartialEq for LinkQuantity
Source§fn eq(&self, other: &LinkQuantity) -> bool
fn eq(&self, other: &LinkQuantity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinkQuantity
Auto Trait Implementations§
impl Freeze for LinkQuantity
impl RefUnwindSafe for LinkQuantity
impl Send for LinkQuantity
impl Sync for LinkQuantity
impl Unpin for LinkQuantity
impl UnsafeUnpin for LinkQuantity
impl UnwindSafe for LinkQuantity
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