Trait rusty_nail::dispenser::Dispenser [] [src]

pub trait Dispenser {
    fn max_flow_rate(&self) -> f64;
    fn set_flow_rate(&mut self, rate: f64) -> Result<()>;
    fn set_level(&mut self, level: f64) -> Result<()>;
    fn remaining(&self) -> Result<f64>;
    fn dispense(&mut self, quantity: f64) -> Result<f64>;
}

Defines trait for interfacing to a dispense

Required Methods

Returns the maximum flow rate of the pump in mL/s

Sets the current flow rate of the pump in mL/s

Set the current liquid level in mL.

Get the current liquid level in mL.

Dispense some quantity of liquid in mL.

Implementors