Trait machinebox::BoxClient [] [src]

pub trait BoxClient {
    fn url(&self) -> &str;

    fn info(&self) -> Result<BoxInfo, Error> { ... }
fn health(&self) -> Result<Health, Error> { ... }
fn is_live(&self) -> Result<bool, Error> { ... }
fn is_ready(&self) -> Result<bool, Error> { ... } }

BoxClient represents the methods that are available on all of the specialized clients regardless of box type.

Required Methods

Indicates the URL of the box

Provided Methods

Provides information about the box

Checks the health of the box

Determines whether the box is live

Determines if the box is ready. Some boxes may take a while to start up, so you can use this function to check if it is acceptable to start using the box-specific functionality

Implementors