pub struct KernelThreadHandle { /* private fields */ }Expand description
Join capability for one runtime-backed kernel thread.
Callers must either join a thread that may return or mark a
shutdown-lifetime worker with detach_permanent.
Implementations§
Source§impl KernelThreadHandle
impl KernelThreadHandle
Sourcepub fn join(self) -> Result<(), TaskError>
pub fn join(self) -> Result<(), TaskError>
Waits for logical thread exit and hands reclamation to the bounded reaper.
§Errors
Returns TaskError::InvalidConfiguration when joining the current
thread and propagates scheduler wait or resource teardown errors.
Sourcepub fn detach_permanent(self)
pub fn detach_permanent(self)
Marks a worker as intentionally live until scheduler shutdown.
The entry closure must never return. Shutdown owns the remaining registry record and runtime resources; this method performs no hidden reaping.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for KernelThreadHandle
impl !UnwindSafe for KernelThreadHandle
impl Freeze for KernelThreadHandle
impl Send for KernelThreadHandle
impl Sync for KernelThreadHandle
impl Unpin for KernelThreadHandle
impl UnsafeUnpin for KernelThreadHandle
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