pub struct CalibrationSpec<'a> {
pub input_quantity: &'a str,
pub output_units: &'a str,
pub scale: f64,
pub offset: f64,
pub reference_pressure_pa: Option<f64>,
pub response_entry: Option<u32>,
pub uncertainty_entry: Option<u32>,
pub calibration_digest: Option<[u8; 32]>,
pub valid_from: Option<u32>,
pub valid_until: Option<u32>,
}Expand description
Shared acoustic calibration (Schema 202).
Fields§
§input_quantity: &'a str§output_units: &'a str§scale: f64§offset: f64§reference_pressure_pa: Option<f64>§response_entry: Option<u32>§uncertainty_entry: Option<u32>§calibration_digest: Option<[u8; 32]>§valid_from: Option<u32>§valid_until: Option<u32>Implementations§
Source§impl<'a> CalibrationSpec<'a>
impl<'a> CalibrationSpec<'a>
pub fn validate(&self) -> Result<(), ProfileError>
Sourcepub fn is_valid_at(
now: &InstantSpec,
now_clock: &ClockSpec,
from: Option<(&InstantSpec, &ClockSpec)>,
until: Option<(&InstantSpec, &ClockSpec)>,
) -> Result<bool, ProfileError>
pub fn is_valid_at( now: &InstantSpec, now_clock: &ClockSpec, from: Option<(&InstantSpec, &ClockSpec)>, until: Option<(&InstantSpec, &ClockSpec)>, ) -> Result<bool, ProfileError>
Half-open validity interval [from, until). Fails closed if from >= until or clock scales mismatch.
Trait Implementations§
Source§impl<'a> Clone for CalibrationSpec<'a>
impl<'a> Clone for CalibrationSpec<'a>
Auto Trait Implementations§
impl<'a> Freeze for CalibrationSpec<'a>
impl<'a> RefUnwindSafe for CalibrationSpec<'a>
impl<'a> Send for CalibrationSpec<'a>
impl<'a> Sync for CalibrationSpec<'a>
impl<'a> Unpin for CalibrationSpec<'a>
impl<'a> UnsafeUnpin for CalibrationSpec<'a>
impl<'a> UnwindSafe for CalibrationSpec<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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