(&mut self, callback: F)
| 224 | /// Callback for flushing output (if you buffer messages, that's the time to flush those buffers) |
| 225 | #[inline] |
| 226 | pub fn set_log_flush_callback<F: Fn(&Self) + Send + Sync + 'static>(&mut self, callback: F) { |
| 227 | self.verbose_printf_flush(); |
| 228 | self.log_flush_callback = Some(Arc::new(callback)); |
| 229 | } |
| 230 | |
| 231 | /// Set callback function to be called every time the library makes a progress. |
| 232 | /// It can be used to cancel operation early. |
no test coverage detected