pub struct TaskInfo {
pub name: String,
pub pc: ProgramCounter,
pub package_name: String,
pub package_version: Version,
pub kind: Option<PackageKind>,
pub image: Option<Image>,
pub input: HashMap<DataName, AccessKind>,
pub result: Option<String>,
pub args: HashMap<String, FullValue>,
pub requirements: HashSet<Capability>,
}
Expand description
Helper structure for grouping together task information.
Fields§
§name: String
The name of the task to execute.
pc: ProgramCounter
The identifier of the call to the task we’re executing.
package_name: String
The name of the task’s parent package.
package_version: Version
The version of the task’s parent package.
kind: Option<PackageKind>
The kind of the task to execute.
image: Option<Image>
The image name of the package where the task is from. Note: won’t be populated until later.
input: HashMap<DataName, AccessKind>
The input datasets/results to this task, if any.
result: Option<String>
If this call returns an intermediate result, its name is defined here.
args: HashMap<String, FullValue>
The input arguments to the task. Still need to be resolved before running.
requirements: HashSet<Capability>
The requirements for this task.
Implementations§
Source§impl TaskInfo
impl TaskInfo
Sourcepub fn new(
name: impl Into<String>,
pc: ProgramCounter,
package_name: impl Into<String>,
package_version: impl Into<Version>,
input: HashMap<DataName, AccessKind>,
result: Option<String>,
args: HashMap<String, FullValue>,
requirements: HashSet<Capability>,
) -> Self
pub fn new( name: impl Into<String>, pc: ProgramCounter, package_name: impl Into<String>, package_version: impl Into<Version>, input: HashMap<DataName, AccessKind>, result: Option<String>, args: HashMap<String, FullValue>, requirements: HashSet<Capability>, ) -> Self
Constructor for the TaskInfo.
§Arguments
name
: The name of the task to execute.pc
: The identifier of the call to the task we’re executing.package_name
: The name of the task’s parent package.package_version
: The version of the task’s parent package.input
: The input datasets/results to this task, if any.result
: If this call returns an intermediate result, its name is defined here.args
: The input arguments to the task. Still need to be resolved before running.requirements
: The list of required capabilities for this task.
§Returns
A new TaskInfo instance.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskInfo
impl RefUnwindSafe for TaskInfo
impl Send for TaskInfo
impl Sync for TaskInfo
impl Unpin for TaskInfo
impl UnwindSafe for TaskInfo
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request