[][src]Trait bigml::resource::Status

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.

Loading content...

Implementors

impl Status for ExecutionStatus[src]

impl Status for GenericStatus[src]

Loading content...