pub type TaskResult = Result<Vec<u8>, Box<dyn Error + Send + Sync>>;
Result type for task execution
pub enum TaskResult { Ok(Vec<u8>), Err(Box<dyn Error + Sync + Send>), }
Contains the success value
Contains the error value