Trait bigml::resource::Status
[−]
[src]
pub trait Status { fn code(&self) -> StatusCode; fn message(&self) -> &str; fn elapsed(&self) -> Option<u64>; fn progress(&self) -> Option<f32>; }
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
fn code(&self) -> StatusCode
Status code.
fn message(&self) -> &str
Human-readable status message.
fn elapsed(&self) -> Option<u64>
Number of milliseconds which were needed to create this resource.
fn progress(&self) -> Option<f32>
Number between 0.0 and 1.0 representing the progress of creating this resource.
Implementors
impl Status for GenericStatus