pub struct EffectResolver<Output: Send + 'static> { /* private fields */ }Implementations§
Source§impl<Output: Send + 'static> EffectResolver<Output>
impl<Output: Send + 'static> EffectResolver<Output>
Sourcepub fn resolve(&mut self, output: Output)
pub fn resolve(&mut self, output: Output)
Resolve the effect with the given output.
For one-shot effects this should be called exactly once. For streaming effects it can be called multiple times.
§Panics
Panics if called synchronously from within
EffectMiddleware::try_process_effect. Middleware must dispatch work
asynchronously (e.g. std::thread::spawn, spawn_local, or a channel)
and call resolve from there.
Auto Trait Implementations§
impl<Output> Freeze for EffectResolver<Output>
impl<Output> !RefUnwindSafe for EffectResolver<Output>
impl<Output> Send for EffectResolver<Output>
impl<Output> !Sync for EffectResolver<Output>
impl<Output> Unpin for EffectResolver<Output>
impl<Output> UnsafeUnpin for EffectResolver<Output>
impl<Output> !UnwindSafe for EffectResolver<Output>
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