pub struct Submission<'a, S, H: EffectHandler> { /* private fields */ }Expand description
A submission of input to a registered handler. Await it to run the
effect. Created by Runtime::submit.
Implementations§
Source§impl<'a, S, H: EffectHandler> Submission<'a, S, H>
impl<'a, S, H: EffectHandler> Submission<'a, S, H>
Trait Implementations§
Source§impl<'a, S: EffectStore, H: EffectHandler> IntoFuture for Submission<'a, S, H>
impl<'a, S: EffectStore, H: EffectHandler> IntoFuture for Submission<'a, S, H>
Source§type Output = Result<EffectOutcome<<H as EffectHandler>::Output>, RuntimeError>
type Output = Result<EffectOutcome<<H as EffectHandler>::Output>, RuntimeError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <Submission<'a, S, H> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <Submission<'a, S, H> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a, S, H> !RefUnwindSafe for Submission<'a, S, H>
impl<'a, S, H> !UnwindSafe for Submission<'a, S, H>
impl<'a, S, H> Freeze for Submission<'a, S, H>
impl<'a, S, H> Send for Submission<'a, S, H>
impl<'a, S, H> Sync for Submission<'a, S, H>
impl<'a, S, H> Unpin for Submission<'a, S, H>
impl<'a, S, H> UnsafeUnpin for Submission<'a, S, H>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more