Struct arret_runtime::task::Task [−][src]
pub struct Task { /* fields omitted */ }
Isolated task of execution
All Arret and RFI code must run inside a task. It provides a dedicated garbage collected
Heap
as well as an isolation boundary against panics. A task is inherently single threaded;
it’s not possible for one task to be executing on multiple threads at the same time.
Implementations
impl Task
[src]
impl Task
[src]pub fn new() -> Task
[src]
Creates a new empty task
pub fn heap(&self) -> &Heap
[src]
Returns this task’s dedicated heap
pub fn heap_mut(&mut self) -> &mut Heap
[src]
Returns a mutable reference to this task’s dedicated heap
pub fn panic(&mut self, message: String) -> Never
[src]
Panics the current task
This destroys the current task and invokes any cleanup required.