Struct rusty_nail::dispenser::TestDispenser
[−]
[src]
pub struct TestDispenser { pub max_flow_rate: f64, pub fluid_level: f64, }
Fields
max_flow_rate: f64
fluid_level: f64
Methods
impl TestDispenser
[src]
fn new(max_flow: f64, fluid_level: f64) -> TestDispenser
Trait Implementations
impl Debug for TestDispenser
[src]
impl Dispenser for TestDispenser
[src]
fn max_flow_rate(&self) -> f64
Returns the maximum flow rate of the pump in mL/s
fn set_flow_rate(&mut self, rate: f64) -> Result<()>
Sets the current flow rate of the pump in mL/s
fn set_level(&mut self, level: f64) -> Result<()>
Set the current liquid level in mL.
fn remaining(&self) -> Result<f64>
Get the current liquid level in mL.
fn dispense(&mut self, quantity: f64) -> Result<f64>
Dispense some quantity of liquid in mL.