Struct mica::Fiber

source ·
pub struct Fiber<'e> { /* private fields */ }
Expand description

A fiber represents an independent, pausable thread of code execution.

Implementations§

Resumes execution of a fiber. If execution is done already, returns None.

Resumes execution of a fiber until it’s done evaluating all code. The last result is returned and results from intermediate yields are discarded.

This consumes the fiber, as calling one that’s finished is not useful.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.