[][src]Struct bigml::resource::execution::ExecutionStatus

pub struct ExecutionStatus {
    pub code: StatusCode,
    pub message: String,
    pub elapsed: Option<u64>,
    pub progress: Option<f32>,
    pub call_stack: Option<Vec<SourceLocation>>,
    pub cause: Option<Cause>,
    pub elapsed_times: HashMap<String, u64>,
    pub extra: HashMap<String, String>,
    pub instruction: Option<Instruction>,
    pub source_location: Option<SourceLocation>,
    // some fields omitted
}

Execution-specific status information.

Fields

code: StatusCode

Status code.

message: String

Human-readable status message.

elapsed: Option<u64>

Number of milliseconds which were needed to create this resource.

progress: Option<f32>

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

call_stack: Option<Vec<SourceLocation>>

The call stack, if one is present.

cause: Option<Cause>

The cause of the error.

elapsed_times: HashMap<String, u64>

The number of milliseconds elapsed during different phases of execution.

extra: HashMap<String, String>

Extra information about errors, typically mapping field names to field-specific error messages.

instruction: Option<Instruction>

The instruction at which an error occurred.

source_location: Option<SourceLocation>

(Undocumented) Where are we in the script's execution? This is particularly useful when an error occurs.

Methods

impl ExecutionStatus[src]

pub fn full_message(&self) -> String[src]

The message for this status, plus the cause and any other useful information that might be present.

Trait Implementations

impl Clone for ExecutionStatus[src]

impl Debug for ExecutionStatus[src]

impl<'de> Deserialize<'de> for ExecutionStatus[src]

impl Serialize for ExecutionStatus[src]

impl Status for ExecutionStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.