Module fibers::fiber [] [src]

Fiber related components (for developers).

Those are mainly exported for developers. So, usual users do not need to be conscious.

Structs

BoxSpawn

Boxed Spawn object.

Context

The execution context of the currently running fiber.

Scheduler

Scheduler of spawned fibers.

SchedulerHandle

A handle of a scheduler.

Unpark

Unpark object.

Traits

Spawn

The Spawn trait allows for spawning fibers.

Functions

with_current_context

Calls f with the current execution context.

yield_poll

Cooperatively gives up a poll for the current future (fiber).

Type Definitions

ContextId

The identifier of an execution context.

FiberId

The identifier of a fiber.

SchedulerId

The identifier of a scheduler.