We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
OwnedBackgroundTaskGuard
1 parent a132a78 commit 283da2cCopy full SHA for 283da2c
1 file changed
rust/src/background_task.rs
@@ -30,15 +30,15 @@ pub struct OwnedBackgroundTaskGuard {
30
}
31
32
impl OwnedBackgroundTaskGuard {
33
- pub fn cancel(&mut self) {
+ pub fn cancel(&self) {
34
self.task.cancel();
35
36
37
pub fn is_cancelled(&self) -> bool {
38
self.task.is_cancelled()
39
40
41
- pub fn set_progress_text(&mut self, text: &str) {
+ pub fn set_progress_text(&self, text: &str) {
42
self.task.set_progress_text(text);
43
44
0 commit comments