pub struct TaskResult {
pub id: TaskId,
pub result: BuildResult,
pub outcome: TaskOutcome,
pub load_time: Instant,
pub duration: Duration,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
/* private fields */
}Expand description
Represents the result of a task
Fields§
§id: TaskIdThe identifier of the task
result: BuildResultThe result of the task
outcome: TaskOutcome§load_time: InstantThe time the task was loaded into the executor
duration: DurationThe duration between the load time and when a result was received
stdout: Vec<u8>The stdout of the task
stderr: Vec<u8>The stderr of the task
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TaskResult
impl !RefUnwindSafe for TaskResult
impl Send for TaskResult
impl Sync for TaskResult
impl Unpin for TaskResult
impl !UnwindSafe for TaskResult
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> InstanceOf for T
impl<T> InstanceOf for T
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> 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