pub struct ScopeEach<I, M, E, S, F> { /* private fields */ }Trait Implementations§
Source§impl<I, M, E1, O, E, S, F> Service<I> for ScopeEach<I, M, E1, S, F>
impl<I, M, E1, O, E, S, F> Service<I> for ScopeEach<I, M, E1, S, F>
type Out = Result<(I, Result<O, E>), E1>
fn handle( &mut self, msg: I, 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<I, M, E, S, F> Freeze for ScopeEach<I, M, E, S, F>
impl<I, M, E, S, F> RefUnwindSafe for ScopeEach<I, M, E, S, F>
impl<I, M, E, S, F> Send for ScopeEach<I, M, E, S, F>
impl<I, M, E, S, F> Sync for ScopeEach<I, M, E, S, F>
impl<I, M, E, S, F> Unpin for ScopeEach<I, M, E, S, F>
impl<I, M, E, S, F> UnwindSafe for ScopeEach<I, M, E, S, F>
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