Get the thread from the task, panicking if it is a kernel task.
(&self)
| 177 | |
| 178 | /// Get the thread from the task, panicking if it is a kernel task. |
| 179 | fn as_thread(&self) -> &Thread { |
| 180 | self.try_as_thread().expect("kernel task") |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | impl AsThread for TaskInner { |
no test coverage detected