Struct actix_interop::StreamInteropWrap
source · [−]pub struct StreamInteropWrap<A: Actor, S> { /* private fields */ }
Expand description
Stream to ActorStream adapter returned by interop_actor
.
Trait Implementations
sourceimpl<A: Actor, S: Stream> ActorStream<A> for StreamInteropWrap<A, S>
impl<A: Actor, S: Stream> ActorStream<A> for StreamInteropWrap<A, S>
impl<'pin, A: Actor, S> Unpin for StreamInteropWrap<A, S> where
__StreamInteropWrap<'pin, A, S>: Unpin,
Auto Trait Implementations
impl<A, S> RefUnwindSafe for StreamInteropWrap<A, S> where
S: RefUnwindSafe,
impl<A, S> Send for StreamInteropWrap<A, S> where
S: Send,
impl<A, S> Sync for StreamInteropWrap<A, S> where
S: Sync,
impl<A, S> UnwindSafe for StreamInteropWrap<A, S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<A, S> ActorStreamExt<A> for S where
S: ActorStream<A>,
A: Actor,
impl<A, S> ActorStreamExt<A> for S where
S: ActorStream<A>,
A: Actor,
sourcefn map<F, U>(self, f: F) -> Map<Self, F> where
F: FnMut(Self::Item, &mut A, &mut <A as Actor>::Context) -> U,
fn map<F, U>(self, f: F) -> Map<Self, F> where
F: FnMut(Self::Item, &mut A, &mut <A as Actor>::Context) -> U,
Maps this stream’s items to a different type, returning a new stream of the resulting type. Read more
sourcefn then<F, Fut>(self, f: F) -> Then<Self, F, Fut> where
F: FnMut(Self::Item, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorFuture<A>,
fn then<F, Fut>(self, f: F) -> Then<Self, F, Fut> where
F: FnMut(Self::Item, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorFuture<A>,
Computes from this stream’s items new items of a different type using an asynchronous closure. Read more
sourcefn fold<F, Fut>(
self,
init: <Fut as ActorFuture<A>>::Output,
f: F
) -> Fold<Self, F, Fut, <Fut as ActorFuture<A>>::Output> where
F: FnMut(<Fut as ActorFuture<A>>::Output, Self::Item, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorFuture<A>,
fn fold<F, Fut>(
self,
init: <Fut as ActorFuture<A>>::Output,
f: F
) -> Fold<Self, F, Fut, <Fut as ActorFuture<A>>::Output> where
F: FnMut(<Fut as ActorFuture<A>>::Output, Self::Item, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorFuture<A>,
Execute an accumulating asynchronous computation over a stream, collecting all the values into one final result. Read more
sourcefn take_while<F, Fut>(self, f: F) -> TakeWhile<Self, Self::Item, F, Fut> where
F: FnMut(&Self::Item, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorFuture<A, Output = bool>,
fn take_while<F, Fut>(self, f: F) -> TakeWhile<Self, Self::Item, F, Fut> where
F: FnMut(&Self::Item, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorFuture<A, Output = bool>,
Take elements from this stream while the provided asynchronous predicate
resolves to true
. Read more
sourcefn skip_while<F, Fut>(self, f: F) -> SkipWhile<Self, Self::Item, F, Fut> where
F: FnMut(&Self::Item, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorFuture<A, Output = bool>,
fn skip_while<F, Fut>(self, f: F) -> SkipWhile<Self, Self::Item, F, Fut> where
F: FnMut(&Self::Item, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorFuture<A, Output = bool>,
Skip elements on this stream while the provided asynchronous predicate
resolves to true
. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more