pub struct LocalTask { /* private fields */ }Expand description
A handle that stops its task when dropped.
A thread cannot be aborted like a tokio task, so dropping this cancels a token the task selects on.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalTask
impl RefUnwindSafe for LocalTask
impl Send for LocalTask
impl Sync for LocalTask
impl Unpin for LocalTask
impl UnsafeUnpin for LocalTask
impl UnwindSafe for LocalTask
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