Struct lightproc::lightproc::LightProc [−][src]
pub struct LightProc { /* fields omitted */ }
Expand description
Struct to create and operate lightweight processes
Implementations
Creates a recoverable process which will signal occurred panic back to the poller.
Example
// ... creating a recoverable process
let panic_recoverable = LightProc::recoverable(
future,
schedule_function,
proc_stack
);
Creates a standard process which will stop it’s execution on occurrence of panic.
Example
// ... creating a standard process
let standard = LightProc::build(
future,
schedule_function,
proc_stack
);
Schedule the lightweight process with passed schedule
function at the build time.
Cancel polling the lightproc’s inner future, thus cancelling th proc itself.