[][src]Crate eff

Re-exports

pub use eff_attr::eff;
pub use context::Context;
pub use context::Notify;
pub use context::TypedContext;
pub use context::Waker;
pub use generator::from_generator;
pub use lazy::lazy;
pub use lazy::pure;

Modules

context

A context for a task

coproduct

Coproduct type of effects

either

Either of the two underlying effectful computation

embed

Embed the effect of an computation into a wider one

future

Conversion between Future/Stream and Effectful

generator

Convert a generator into an effectful computation

handled

An effectful computation with some effects handled

lazy

A lazy computation with no effects.

poll_fn

Macros

Coproduct

A coproduct type of effects

await_join
await_poll

Poll the pinned computation until it produces the result or an effect

effectful

An effectful computation block

handle
handle_impl
handler

Create a handler

perform

Performs an effect, suspending the current computation until the task gets waken

perform_from

Runs an effectful computation under the current context

Structs

Continue

A special effect representing the continuation of the source computation in handlers

Enums

AwaitedPoll

The result of await_poll!

Poll

The state of an effectful computation

Suspension

The cause for suspension of the computation

Traits

Effect

A computational effect that will be resolved to Output

Effectful

An effectful computation