pub type HandleProgress = Box<dyn FnMut(bool, &[u8])>;
A function f(is_error, text) receiving progress or error information.
f(is_error, text)