pub struct SpawnEach<M, S> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<M, R, E, S> Service<M> for SpawnEach<M, S>
impl<M, R, E, S> Service<M> for SpawnEach<M, S>
type Out = Result<Receiver<Result<R, E>>, E>
fn handle( &mut self, input: M, cx: &Context, ) -> impl Stream<Item = Self::Out> + Send
fn handle_stream( &mut self, input: impl Stream<Item = In> + Send, cx: &Context, ) -> impl Stream<Item = Self::Out> + Send
fn finalize(&mut self, _cx: &Context) -> impl Future<Output = ()>where
Self: Sized,
Auto Trait Implementations§
impl<M, S> Freeze for SpawnEach<M, S>where
S: Freeze,
impl<M, S> RefUnwindSafe for SpawnEach<M, S>where
S: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, S> Send for SpawnEach<M, S>
impl<M, S> Sync for SpawnEach<M, S>
impl<M, S> Unpin for SpawnEach<M, S>
impl<M, S> UnwindSafe for SpawnEach<M, S>where
S: UnwindSafe,
M: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> ServiceExt<I> for T
impl<I, T> ServiceExt<I> for T
fn flow<O1, O2, E1, E2, U>(self, service: U) -> (Self, U)
fn except<F>(self, on_err: F) -> Except<Self, F>where
Self: Sized,
Source§fn flow_inspect<O, E, F>(self, f: F) -> Left<Self, Inspect<O, F>>
fn flow_inspect<O, E, F>(self, f: F) -> Left<Self, Inspect<O, F>>
Adds an inspection step that invokes the supplied callback on every
successful output of the wrapped service. Read more
Source§fn concurrent_each(self, limit: usize) -> ConcurrentEach<I, Self>
fn concurrent_each(self, limit: usize) -> ConcurrentEach<I, Self>
Creates a concurrent wrapper around the current service that limits the number of
parallel executions. Read more
Source§fn spawn_each(self) -> SpawnEach<I, Self>
fn spawn_each(self) -> SpawnEach<I, Self>
Source§fn flow_scope<O, M, E1, S, F>(self, f: F, s: S) -> (Self, Scope<O, M, E1, S, F>)
fn flow_scope<O, M, E1, S, F>(self, f: F, s: S) -> (Self, Scope<O, M, E1, S, F>)
Creates a scoped service wrapper that transforms incoming messages before passing to the wrapped service. Read more