#[non_exhaustive]pub struct Measurements {Show 14 fields
pub vpp: Option<f64>,
pub vmax: Option<f64>,
pub vmin: Option<f64>,
pub vrms: Option<f64>,
pub vavg: Option<f64>,
pub period: Option<f64>,
pub frequency: Option<f64>,
pub duty_cycle_positive: Option<f64>,
pub duty_cycle_negative: Option<f64>,
pub pulse_width_positive: Option<f64>,
pub pulse_width_negative: Option<f64>,
pub rise_time: Option<f64>,
pub fall_time: Option<f64>,
pub overshoot: Option<f64>,
}Expand description
Every quantity Scope::measure_all read from one capture. A quantity
the capture does not support (a period on a DC level) is None.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vpp: Option<f64>Peak-to-peak voltage (V).
vmax: Option<f64>Maximum voltage (V).
vmin: Option<f64>Minimum voltage (V).
vrms: Option<f64>RMS voltage (V).
vavg: Option<f64>Average voltage (V).
period: Option<f64>Period (s).
frequency: Option<f64>Frequency (Hz).
duty_cycle_positive: Option<f64>Positive duty cycle (%).
duty_cycle_negative: Option<f64>Negative duty cycle (%).
pulse_width_positive: Option<f64>Positive pulse width (s).
pulse_width_negative: Option<f64>Negative pulse width (s).
rise_time: Option<f64>Rise time (s).
fall_time: Option<f64>Fall time (s).
overshoot: Option<f64>Overshoot (%).
Implementations§
Source§impl Measurements
impl Measurements
Sourcepub fn get(&self, m: Measurement) -> Option<f64>
pub fn get(&self, m: Measurement) -> Option<f64>
The value for one Measurement.
Trait Implementations§
Source§impl Clone for Measurements
impl Clone for Measurements
impl Copy for Measurements
Source§impl Debug for Measurements
impl Debug for Measurements
Source§impl Default for Measurements
impl Default for Measurements
Source§impl<'de> Deserialize<'de> for Measurements
impl<'de> Deserialize<'de> for Measurements
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Measurements
impl PartialEq for Measurements
impl StructuralPartialEq for Measurements
Auto Trait Implementations§
impl Freeze for Measurements
impl RefUnwindSafe for Measurements
impl Send for Measurements
impl Sync for Measurements
impl Unpin for Measurements
impl UnsafeUnpin for Measurements
impl UnwindSafe for Measurements
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