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.

Schedule the lightproc for runnning on the thread.

Cancel polling the lightproc’s inner future, thus cancelling th proc itself.

Gives a reference to given ProcStack when building the light proc.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Downcast implemented type to Any. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.