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
sourceimpl<'f, F, T> Callee for FiberFunc<'f, F, T> where
F: FnOnce() -> T,
F: 'f,
T: 'f,
impl<'f, F, T> Callee for FiberFunc<'f, F, T> where
F: FnOnce() -> T,
F: 'f,
T: 'f,
type JoinHandle = JoinHandle<'f, T>
type JoinHandle = JoinHandle<'f, T>
JoinHandle type which will be returned from the Fyber::spawn
function Read more
type Args = (Box<F>, *mut Option<T>)
type Args = (Box<F>, *mut Option<T>)
Arguments for the trampoline function which will be passed through the
va_list::VaList Read more
sourceunsafe fn start_fiber(self, inner: NonNull<Fiber>) -> Self::JoinHandle
unsafe fn start_fiber(self, inner: NonNull<Fiber>) -> Self::JoinHandle
This function is called within Fyber::spawn to prepare the arguments
for and invoke the [ffi::fiber_start] function. Read more
sourceunsafe fn parse_args(args: VaList) -> Self::Args
unsafe fn parse_args(args: VaList) -> Self::Args
This function is called within Fyber::trampoline to extract the
arguments from the va_list::VaList. Read more
Auto Trait Implementations
impl<'f, F, T> !RefUnwindSafe for FiberFunc<'f, F, T>
impl<'f, F, T> Send for FiberFunc<'f, F, T> where
F: Send,
T: Send,
impl<'f, F, T> !Sync for FiberFunc<'f, F, T>
impl<'f, F, T> Unpin for FiberFunc<'f, F, T>
impl<'f, F, T> UnwindSafe for FiberFunc<'f, F, T> where
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more