[][src]Crate eff

Re-exports

pub use context::poll_with_task_context;
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

futures_compat

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.

next_event
poll_fn

Macros

Coproduct

A coproduct type of effects

effectful

An effectful computation block

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

poll

Poll the given computations concurrently

reperform_rest

Structs

Continue

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

Enums

Event

An observable event of an effectful computation

Poll

The state of an effectful computation

Traits

Effect

A computational effect that will be resolved to Output

Effectful

An effectful computation

Attribute Macros

eff

Declare the function to be an effectful computation whose effect type is the coproduct of the arguments