[][src]Trait casper_node::effect::EffectExt

pub trait EffectExt: Future + Send {
    fn event<U, F>(self, f: F) -> Effects<U>
    where
        F: FnOnce(Self::Output) -> U + 'static + Send,
        U: 'static,
        Self: Sized
;
fn ignore<Ev>(self) -> Effects<Ev>; }

Effect extension for futures, used to convert futures into actual effects.

Required methods

fn event<U, F>(self, f: F) -> Effects<U> where
    F: FnOnce(Self::Output) -> U + 'static + Send,
    U: 'static,
    Self: Sized

Finalizes a future into an effect that returns an event.

The function f is used to translate the returned value from an effect into an event.

fn ignore<Ev>(self) -> Effects<Ev>

Finalizes a future into an effect that runs but drops the result.

Loading content...

Implementors

impl<T: ?Sized> EffectExt for T where
    T: Future + Send + 'static + Sized
[src]

Loading content...