pub struct Job {
pub process_id: usize,
pub parent_id: usize,
pub function_name: String,
pub payload: Payload,
pub result: Result<(Option<Value>, RunAgain)>,
pub connections: Vec<OutputConnection>,
}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§
§process_id: usizeThe process_id of the function in the RunState’s list of functions that will execute this job
parent_id: usizeThe parent_id of the flow containing the function executing the job
function_name: StringThe function name (for logging without looking up the function)
payload: Payloadthe payload required to execute the job
result: Result<(Option<Value>, RunAgain)>The result of the execution with the job_id, the optional output Value and if the function
should be run again in the future
connections: Vec<OutputConnection>The destinations (other function’s inputs) where any output should be sent
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Job
impl !Sync for Job
impl !UnwindSafe for Job
impl Freeze for Job
impl Send for Job
impl Unpin for Job
impl UnsafeUnpin for Job
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more