pub struct TaskOutput<T> {
pub value: T,
pub metrics: Vec<(String, f64)>,
}Expand description
The output of firing a task, including named metrics for pattern detection.
Fields§
§value: TThe primary output value.
metrics: Vec<(String, f64)>Named metrics extracted during firing, used by pattern detectors.
Implementations§
Source§impl<T> TaskOutput<T>
impl<T> TaskOutput<T>
Trait Implementations§
Source§impl<T: Clone> Clone for TaskOutput<T>
impl<T: Clone> Clone for TaskOutput<T>
Source§fn clone(&self) -> TaskOutput<T>
fn clone(&self) -> TaskOutput<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for TaskOutput<T>where
T: Freeze,
impl<T> RefUnwindSafe for TaskOutput<T>where
T: RefUnwindSafe,
impl<T> Send for TaskOutput<T>where
T: Send,
impl<T> Sync for TaskOutput<T>where
T: Sync,
impl<T> Unpin for TaskOutput<T>where
T: Unpin,
impl<T> UnsafeUnpin for TaskOutput<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TaskOutput<T>where
T: UnwindSafe,
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