pub enum TaskOutput {
Array(Array2<f64>),
Text(String),
Binary(Vec<u8>),
Json(String),
FilePath(String),
Multiple(HashMap<String, Box<TaskOutput>>),
Custom(Box<dyn Any + Send + Sync>),
}Expand description
Task execution output
Variants§
Array(Array2<f64>)
Numerical array output
Text(String)
String output
Binary(Vec<u8>)
Binary data output
Json(String)
JSON-serialized output
FilePath(String)
File path to output
Multiple(HashMap<String, Box<TaskOutput>>)
Multiple outputs
Custom(Box<dyn Any + Send + Sync>)
Custom output type
Trait Implementations§
Source§impl Clone for TaskOutput
impl Clone for TaskOutput
Auto Trait Implementations§
impl Freeze for TaskOutput
impl !RefUnwindSafe for TaskOutput
impl Send for TaskOutput
impl Sync for TaskOutput
impl Unpin for TaskOutput
impl !UnwindSafe for TaskOutput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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