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
Provided Methods
fn info(&self) -> Result<BoxInfo, Error>
Provides information about the box
fn health(&self) -> Result<Health, Error>
Checks the health of the box
fn is_live(&self) -> Result<bool, Error>
Determines whether the box is live
fn is_ready(&self) -> Result<bool, Error>
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
impl BoxClient for Textbox
impl BoxClient for Suggestionbox
impl BoxClient for Tagbox