pub struct CurrentTask { /* private fields */ }Expand description
The task running right now — borrowed, not owned.
A separate type from Task because the two differ in what they may do: a
reference obtained from swift_task_getCurrent is not one this crate owns,
so releasing it would be an over-release, and there is no completion signal
for a task somebody else started.
Implementations§
Source§impl CurrentTask
impl CurrentTask
Auto Trait Implementations§
impl !Send for CurrentTask
impl !Sync for CurrentTask
impl Freeze for CurrentTask
impl RefUnwindSafe for CurrentTask
impl Unpin for CurrentTask
impl UnsafeUnpin for CurrentTask
impl UnwindSafe for CurrentTask
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more