[−][src]Enum eff::either::Either
An effectful computation that is either of the two underlying ones
Variants
Trait Implementations
impl<Output, Effect, L, R> Effectful for Either<L, R> where
L: Effectful<Output = Output, Effect = Effect>,
R: Effectful<Output = Output, Effect = Effect>,
[src]
L: Effectful<Output = Output, Effect = Effect>,
R: Effectful<Output = Output, Effect = Effect>,
type Output = Output
The type of the final result
type Effect = Effect
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,
HC: Effectful,
H: FnMut(Event<Self::Output, Effect>) -> HC,
Self::Effect: Subset<Effect, I>,
[src]
Self: Sized,
HC: Effectful,
H: FnMut(Event<Self::Output, Effect>) -> HC,
Self::Effect: Subset<Effect, I>,
fn embed<Target, Indices>(self) -> EmbedEffect<Self, Target, Indices> where
Self: Sized,
[src]
Self: Sized,
fn left<R>(self) -> Either<Self, R> where
Self: Sized,
[src]
Self: Sized,
fn right<L>(self) -> Either<L, Self> where
Self: Sized,
[src]
Self: Sized,
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,
fn output<T>(self) -> Self where
Self: Effectful<Output = T> + Sized,
[src]
Self: Effectful<Output = T> + Sized,
fn effect<E>(self) -> Self where
Self: Effectful<Effect = E> + Sized,
[src]
Self: Effectful<Effect = E> + Sized,
ⓘImportant traits for IntoFuture<C>fn into_future(self) -> IntoFuture<Self> where
Self: Effectful<Effect = !> + Sized,
[src]
ⓘImportant traits for IntoFuture<C>
Self: Effectful<Effect = !> + Sized,
fn block_on(self) -> Self::Output where
Self: Sized + Effectful<Effect = !>,
[src]
Self: Sized + Effectful<Effect = !>,
fn next_event(self) -> NextEvent<Self> where
Self: Sized,
[src]
Self: Sized,
impl<'pin, L, R> Unpin for Either<L, R> where
__Either<'pin, L, R>: Unpin,
[src]
__Either<'pin, L, R>: Unpin,
Auto Trait Implementations
impl<L, R> Send for Either<L, R> where
L: Send,
R: Send,
L: Send,
R: Send,
impl<L, R> Sync for Either<L, R> where
L: Sync,
R: Sync,
L: Sync,
R: Sync,
impl<L, R> UnwindSafe for Either<L, R> where
L: UnwindSafe,
R: UnwindSafe,
L: UnwindSafe,
R: UnwindSafe,
impl<L, R> RefUnwindSafe for Either<L, R> where
L: RefUnwindSafe,
R: RefUnwindSafe,
L: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
impl<T> EmbedRest<T, Zero> for T
[src]
fn embed_rest(Self) -> T
[src]
impl<Head, Tail, N, Rest> EmbedRest<Either<Head, Tail>, Succ<N>> for Rest where
Head: Effect,
Rest: EmbedRest<Tail, N>,
[src]
Head: Effect,
Rest: EmbedRest<Tail, N>,
fn embed_rest(Self) -> Either<Head, Tail>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> 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<U> 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<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> 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,