pub struct FiberFunc<'f, F, T> where
    F: FnOnce() -> T,
    F: 'f, 
{ /* private fields */ }
Expand description

This is a helper type used to configure Fyber with the appropriate behavior for the fiber function that returns a value.

Trait Implementations

JoinHandle type which will be returned from the Fyber::spawn function Read more

Arguments for the trampoline function which will be passed through the va_list::VaList Read more

This function is called within Fyber::spawn to prepare the arguments for and invoke the [ffi::fiber_start] function. Read more

This function is called within Fyber::trampoline to extract the arguments from the va_list::VaList. Read more

This function is called within Fyber::trampoline to invoke the underlying callee function and process it’s results. 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.

Should always be Self

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.