Trait zircon_object::task::Task[][src]

pub trait Task: Sync + Send {
    fn kill(&self);
fn suspend(&self);
fn resume(&self);
fn exceptionate(&self) -> Arc<Exceptionate>;
fn debug_exceptionate(&self) -> Arc<Exceptionate>; }

Task (Thread, Process, or Job)

Required methods

fn kill(&self)[src]

Kill the task. The task do not terminate immediately when killed. It will terminate after all its children are terminated or some cleanups are finished.

fn suspend(&self)[src]

Suspend the task. Currently only thread or process handles may be suspended.

fn resume(&self)[src]

Resume the task

fn exceptionate(&self) -> Arc<Exceptionate>[src]

Get the exceptionate.

fn debug_exceptionate(&self) -> Arc<Exceptionate>[src]

Get the debug exceptionate.

Loading content...

Implementors

impl Task for Job[src]

fn kill(&self)[src]

Kill the job. The job do not terminate immediately when killed. It will terminate after all its children and processes are terminated.

impl Task for Process[src]

impl Task for Thread[src]

Loading content...