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: Arc<dyn Implementation>,
    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 set of destinations (other function’s inputs) where the output produced by the function should be sent

implementation: Arc<dyn Implementation>

The implementation to be used in executing the 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

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. 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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.