worker_task: add getter for upid

sometimes we need the upid inside the worker itself, so give a
possibilty to get it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-07-31 14:43:24 +02:00 committed by Dietmar Maurer
parent cef03f4149
commit 4bd2a9e42d

View File

@ -589,4 +589,8 @@ impl WorkerTask {
}
rx
}
pub fn upid(&self) -> &UPID {
&self.upid
}
}