pub struct TaskOutput<Op: Operation, Metadata: Serializable> {
pub metadata: Metadata,
pub output: Op::Output,
}
Expand description
A TaskResult
encodes the result of executing a Task
.
The TaskResult
passes back whatever metadata was associated with the
Task
that produced it.
Fields§
§metadata: Metadata
Metadata associated with the Task
that produced this result.
output: Op::Output
The output of the Operation
execution.
Trait Implementations§
Source§impl<Op: Operation> Contiguous for TaskOutput<Op, Metadata>
A Contiguous
TaskOutput
for Task
s.
impl<Op: Operation> Contiguous for TaskOutput<Op, Metadata>
A Contiguous
TaskOutput
for Task
s.
Source§fn is_contiguous(&self, other: &Self) -> bool
fn is_contiguous(&self, other: &Self) -> bool
Check if the given TaskOutput
is contiguous with the given one.
Source§fn key(&self) -> &Self::Key
fn key(&self) -> &Self::Key
Get the key of the TaskOutput
.
We can be sure that the start of the range is safe, as Stream input with duplicated indices is not allowed and constitutes a logic error.
Source§impl<Op: Debug + Operation, Metadata: Debug + Serializable> Debug for TaskOutput<Op, Metadata>
impl<Op: Debug + Operation, Metadata: Debug + Serializable> Debug for TaskOutput<Op, Metadata>
Source§impl<'de, Op, Metadata: Serializable> Deserialize<'de> for TaskOutput<Op, Metadata>where
Op: Operation,
impl<'de, Op, Metadata: Serializable> Deserialize<'de> for TaskOutput<Op, Metadata>where
Op: Operation,
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
Source§impl<Op, Metadata: Serializable> Serialize for TaskOutput<Op, Metadata>where
Op: Operation,
impl<Op, Metadata: Serializable> Serialize for TaskOutput<Op, Metadata>where
Op: Operation,
Source§impl<Op: Operation, Metadata: Serializable> TryFrom<AnyTaskOutput> for TaskOutput<Op, Metadata>
impl<Op: Operation, Metadata: Serializable> TryFrom<AnyTaskOutput> for TaskOutput<Op, Metadata>
Auto Trait Implementations§
impl<Op, Metadata> Freeze for TaskOutput<Op, Metadata>
impl<Op, Metadata> RefUnwindSafe for TaskOutput<Op, Metadata>
impl<Op, Metadata> Send for TaskOutput<Op, Metadata>
impl<Op, Metadata> Sync for TaskOutput<Op, Metadata>
impl<Op, Metadata> Unpin for TaskOutput<Op, Metadata>
impl<Op, Metadata> UnwindSafe for TaskOutput<Op, Metadata>
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