[−][src]Struct eff::handled::Handled
An effectful computation with some effects handled
Trait Implementations
impl<C, Output, Effect, H, HC, HandledEffect, NewOutput, NewEffect, I> Effectful for Handled<C, H, HC, HandledEffect, I> where
C: Effectful<Output = Output, Effect = Effect>,
H: FnMut(HandlerArgument<Output, HandledEffect>) -> HC,
HC: Effectful<Output = NewOutput, Effect = Either<Continue<Output>, NewEffect>>,
Effect: Subset<HandledEffect, I, Remainder = NewEffect>,
[src]
C: Effectful<Output = Output, Effect = Effect>,
H: FnMut(HandlerArgument<Output, HandledEffect>) -> HC,
HC: Effectful<Output = NewOutput, Effect = Either<Continue<Output>, NewEffect>>,
Effect: Subset<HandledEffect, I, Remainder = NewEffect>,
type Output = NewOutput
The type of the final result
type Effect = NewEffect
The type of the effects this computation will produce
fn poll(self: Pin<&mut Self>, cx: &Context) -> Poll<Self::Output, Self::Effect>
[src]
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]
Self: Sized,
H: FnMut(HandlerArgument<Self::Output, Effect>) -> HC,
Self::Effect: Subset<Effect, I>,
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]
Self: Sized,
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]
Self: Sized,
Combine this and the other computation with the same signature
fn right<L>(self) -> Either<L, Self> where
Self: Sized,
[src]
Self: Sized,
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]
self
) -> Pin<Box<dyn Effectful<Output = Self::Output, Effect = Self::Effect> + 'a>> where
Self: Sized + 'a,
Create a boxed computation Read more
fn block_on(self) -> Self::Output where
Self: Sized + Effectful<Effect = !>,
[src]
Self: Sized + Effectful<Effect = !>,
Run the computation to completion on the current thread Read more
impl<C: Debug, H: Debug, HC: Debug, E: Debug, I: Debug> Debug for Handled<C, H, HC, E, I>
[src]
Auto Trait Implementations
impl<C, H, HC, E, I> Send for Handled<C, H, HC, E, I> where
C: Send,
E: Send,
H: Send,
HC: Send,
I: Send,
C: Send,
E: Send,
H: Send,
HC: Send,
I: Send,
impl<C, H, HC, E, I> Sync for Handled<C, H, HC, E, I> where
C: Sync,
E: Sync,
H: Sync,
HC: Sync,
I: Sync,
C: Sync,
E: Sync,
H: Sync,
HC: Sync,
I: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,