pub trait Status {
// Required methods
fn code(&self) -> StatusCode;
fn message(&self) -> &str;
fn elapsed(&self) -> Option<u64>;
fn progress(&self) -> Option<f32>;
}
Expand description
Status of a resource. BigML actually defines many different “status” types, one for each resource, but quite a few of them have are highly similar. This interface tries to generalize over the most common versions.
Required Methods§
sourcefn code(&self) -> StatusCode
fn code(&self) -> StatusCode
Status code.