pub struct ServiceComplianceThresholds {
pub min_pressure: f64,
pub max_pressure: Option<f64>,
}Expand description
Pressure thresholds used to classify reporting-period samples as in-limit or out-of-limit in a service-compliance analysis.
All values are in the same pressure units as the .out file (metres of head
for Hydra-generated output).
Fields§
§min_pressure: f64Minimum acceptable pressure (m). Samples below this are counted as
below_min violations.
max_pressure: Option<f64>Optional maximum acceptable pressure (m). When Some, samples above
this are counted as above_max violations. None disables the upper
bound check.
Implementations§
Source§impl ServiceComplianceThresholds
impl ServiceComplianceThresholds
Sourcepub fn min_only(min_pressure: f64) -> ServiceComplianceThresholds
pub fn min_only(min_pressure: f64) -> ServiceComplianceThresholds
Create thresholds with only a minimum pressure bound (no upper limit).
Trait Implementations§
Source§impl Clone for ServiceComplianceThresholds
impl Clone for ServiceComplianceThresholds
Source§fn clone(&self) -> ServiceComplianceThresholds
fn clone(&self) -> ServiceComplianceThresholds
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 ServiceComplianceThresholds
Auto Trait Implementations§
impl Freeze for ServiceComplianceThresholds
impl RefUnwindSafe for ServiceComplianceThresholds
impl Send for ServiceComplianceThresholds
impl Sync for ServiceComplianceThresholds
impl Unpin for ServiceComplianceThresholds
impl UnsafeUnpin for ServiceComplianceThresholds
impl UnwindSafe for ServiceComplianceThresholds
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