pub fn process_fragment_task(
task: FragmentTask,
data: Vec<u8>,
cli_args: &CliClientArgs,
) -> Result<TcpStream, FractalError>
Expand description
Process a FragmentTask
by generating a fractal image and saving it to the filesystem.
§Arguments
task
- AFragmentTask
containing details such as the fractal type, resolution, and range.data
- AVec<u8>
containing the image data.open_after_save
- A boolean indicating whether the image should be opened after it is saved.
§Return
Result<(TcpStream), FractalError>
- ATcpStream
if the connection was successful, or aFractalError
if the connection failed.