(&self, text: S)
| 76 | } |
| 77 | |
| 78 | pub fn set_progress_text<S: BnStrCompatible>(&self, text: S) { |
| 79 | let progress_text = text.into_bytes_with_nul(); |
| 80 | unsafe { |
| 81 | BNSetBackgroundTaskProgressText(self.handle, progress_text.as_ref().as_ptr() as *mut _) |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | pub fn running_tasks() -> Array<BackgroundTask> { |
| 86 | unsafe { |