#[non_exhaustive]pub struct Sample {
pub time: Duration,
pub depth: Option<Depth>,
pub temperature: Option<Temperature>,
pub pressures: Vec<TankPressure>,
pub ppo2: Option<Pressure>,
pub ppo2_sensors: Vec<Option<Pressure>>,
pub setpoint: Option<Pressure>,
pub cns: Option<f64>,
pub deco: Option<Deco>,
pub time_to_surface: Option<Duration>,
pub gas_time_remaining: Option<Duration>,
pub gradient_factor: Option<u8>,
}Expand description
The values a device recorded at one instant. Absent values were not recorded.
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.time: DurationElapsed time since the dive start.
depth: Option<Depth>Depth.
temperature: Option<Temperature>Water temperature.
pressures: Vec<TankPressure>Tank pressures, one entry per tank that reported.
ppo2: Option<Pressure>The ppO₂ the device computed or voted from its sensors.
ppo2_sensors: Vec<Option<Pressure>>ppO₂ of each oxygen sensor, by sensor number (0 = first); None for a sensor
without a usable reading.
setpoint: Option<Pressure>Rebreather setpoint.
cns: Option<f64>CNS oxygen toxicity, in percent.
deco: Option<Deco>No-decompression limit or the next decompression stop.
time_to_surface: Option<Duration>Time to surface.
gas_time_remaining: Option<Duration>Remaining gas time from air integration.
gradient_factor: Option<u8>Gradient factor of the leading tissue (GF99), in percent.
Trait Implementations§
impl StructuralPartialEq for Sample
Auto Trait Implementations§
impl Forget for Sample
impl Freeze for Sample
impl Move for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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