pub trait Client {
    // Required method
    fn send(&self, req: Request) -> Result<Response>;
    // Provided methods
    fn start(&self) -> Result<()> { ... }
    fn get(&self) -> Result<Timer> { ... }
    fn set(&self, duration: usize) -> Result<()> { ... }
    fn pause(&self) -> Result<()> { ... }
    fn resume(&self) -> Result<()> { ... }
    fn stop(&self) -> Result<()> { ... }
}Available on crate feature 
client only.Expand description
The client trait.
Clients must implement this trait. Only the Client::send
function needs to be implemented: it should describe how to
connect and send requests to the server.