Trait bigml::resource::Status

source ·
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§

source

fn code(&self) -> StatusCode

Status code.

source

fn message(&self) -> &str

Human-readable status message.

source

fn elapsed(&self) -> Option<u64>

Number of milliseconds which were needed to create this resource.

source

fn progress(&self) -> Option<f32>

Number between 0.0 and 1.0 representing the progress of creating this resource.

Implementors§