Function origen::with_current_job_mut[][src]

pub fn with_current_job_mut<T, F>(func: F) -> Result<T> where
    F: FnMut(&mut Job) -> Result<T>, 
Expand description

Execute the given function with a mutable reference to the current job. Returns an error if there is no current job, otherwise the result of the given function.