[][src]Struct eff::embed::EmbedEffect

pub struct EmbedEffect<C, Target, Indices>(_, _);

An effectful computation created by embed() combinator

EmbedEffect is used to "widen" the effect that the task will perform

Trait Implementations

impl<C, Target, Indices> Effectful for EmbedEffect<C, Target, Indices> where
    C: Effectful,
    C::Effect: Embed<Target, Indices>, 
[src]

type Output = C::Output

The type of the final result

type Effect = Target

The type of the effects this computation will produce

fn handle<H, HC, Effect, I>(self, handler: H) -> Handled<Self, H, HC, Effect, I> where
    Self: Sized,
    H: FnMut(HandlerArgument<Self::Output, Effect>) -> HC,
    Self::Effect: Subset<Effect, I>, 
[src]

Takes a value handler and an effect handler and creates an effectful computation with the effects handled Read more

fn embed<Target, Indices>(self) -> EmbedEffect<Self, Target, Indices> where
    Self: Sized
[src]

Creates an effectful computation whose effect is a superset of that of this one

fn left<R>(self) -> Either<Self, R> where
    Self: Sized
[src]

Combine this and the other computation with the same signature

fn right<L>(self) -> Either<L, Self> where
    Self: Sized
[src]

Combine this and the other computation with the same signature

fn boxed<'a>(
    self
) -> Pin<Box<dyn Effectful<Output = Self::Output, Effect = Self::Effect> + 'a>> where
    Self: Sized + 'a, 
[src]

Create a boxed computation Read more

fn block_on(self) -> Self::Output where
    Self: Sized + Effectful<Effect = !>, 
[src]

Run the computation to completion on the current thread Read more

Auto Trait Implementations

impl<C, Target, Indices> Send for EmbedEffect<C, Target, Indices> where
    C: Send,
    Indices: Send,
    Target: Send

impl<C, Target, Indices> Sync for EmbedEffect<C, Target, Indices> where
    C: Sync,
    Indices: Sync,
    Target: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]