client::networkingFunction receive_fragment_task
Source pub fn receive_fragment_task(
stream: &mut TcpStream,
) -> Result<Option<(FragmentTask, Vec<u8>)>, FractalError>
Expand description
Receive a FragmentTask from the server.
§Arguments
stream - A mutable reference to the TcpStream to receive the response from.
§Return
Result<Option<FragmentTask, Vec<u8>>>, FractalError> - A FragmentTask if the response was successful, or a FractalError if the response failed.