Skip to main content

Crate vthread_stack

Crate vthread_stack 

Source
Expand description

Private, unsupported stack backend for vthread; not an independent public API.

Direct downstream use has no compatibility contract. Cleanup mount callbacks are runtime integration hooks and must succeed. A persistent mount failure during lexical scope exit aborts: borrowed executable stacks cannot safely escape their environment.

Structs§

Fiber
One carrier-local stackful execution context.
FiberLease
An internal carrier-local lease; scope exit revokes its executable stack.
FiberScope
Lexical ownership for a bounded set of borrowed, non-Send stacks.
ParkRequest
Scheduler data supplied when a task parks.
ParkToken
Identity for one generation of a parking operation.
StackPool
A bounded cache of guard-page-backed stacks.
StackPoolSnapshot
Operational counters for a stack pool.
SuspendError
Suspension was requested without a mounted fiber.

Enums§

FiberState
The outcome of mounting a fiber once.
Suspension
A reason a mounted fiber returned control to its carrier.

Functions§

fiber_scope
Runs a lexical borrowed-stack owner; leaked leases are inert after this returns.
suspend
Suspends the currently mounted fiber.