Struct flowrlib::job::Job

source ·
pub struct Job {
    pub job_id: usize,
    pub function_id: usize,
    pub flow_id: usize,
    pub input_set: Vec<Value>,
    pub connections: Vec<OutputConnection>,
    pub implementation_url: Url,
    pub result: Result<(Option<Value>, RunAgain)>,
}
Expand description

A Job contains the information necessary to manage the execution of a function in the flow on a set of input values, and then where to send the outputs that maybe produces.

Fields

job_id: usize

Each Job has a unique id that increments as jobs are executed

function_id: usize

The id of the function in the RunState’s list of functions that will execute this job

flow_id: usize

The id of the nested flow (from root flow on down) there the function executing the job is

input_set: Vec<Value>

The set of input values to be used by the function when executing this job

connections: Vec<OutputConnection>

The destinations (other function’s inputs) where any output should be sent

implementation_url: Url

The url of the implementation to be run for this job

result: Result<(Option<Value>, RunAgain)>

The result of the execution with optional output Value and if the function should be run again in the future

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.