Type Definition easyfibers::FiberFn [] [src]

type FiberFn<P, R> = fn(_: Fiber<P, R>, _: P) -> Option<R>;

Fiber execute function. It receives current fiber, parameter that was used to start the fiber and returns result that will be result of fiber.

Generally you return from function once socket is closed or read/write times out.

This function will be called on an independent execution stack which is much more limited so you must either be careful with how deep your stack can get, or set the stack to a high value.

You must test your code for any possible SIGBUS situations and be careful with calling external crates.