#[non_exhaustive]pub struct Tank {
pub name: Option<String>,
pub transmitter: Option<String>,
pub usage: Option<GasUsage>,
pub gas_mix: Option<usize>,
pub begin_pressure: Option<Pressure>,
pub end_pressure: Option<Pressure>,
}Expand description
A tank, usually one monitored by a wireless pressure transmitter.
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.name: Option<String>The device’s name for the tank or transmitter.
transmitter: Option<String>The transmitter’s serial number in the device’s rendering.
usage: Option<GasUsage>What the tank is used for.
gas_mix: Option<usize>Index into Dive::gas_mixes.
begin_pressure: Option<Pressure>Pressure at the start of the dive.
end_pressure: Option<Pressure>Pressure at the end of the dive.
Trait Implementations§
impl StructuralPartialEq for Tank
Auto Trait Implementations§
impl Forget for Tank
impl Freeze for Tank
impl Move for Tank
impl RefUnwindSafe for Tank
impl Send for Tank
impl Sync for Tank
impl Unpin for Tank
impl UnsafeUnpin for Tank
impl UnwindSafe for Tank
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