pub struct StreamInteropWrap<A: Actor, S> { /* private fields */ }
Expand description
Stream to ActorStream adapter returned by interop_actor
.
Trait Implementations§
Source§impl<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
PinnedFieldsOf<__StreamInteropWrap<'pin, A, S>>: Unpin,
Auto Trait Implementations§
impl<A, S> Freeze for StreamInteropWrap<A, S>where
S: Freeze,
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§
Source§impl<A, S> ActorStreamExt<A> for Swhere
S: ActorStream<A>,
A: Actor,
impl<A, S> ActorStreamExt<A> for Swhere
S: ActorStream<A>,
A: Actor,
Source§fn map<F, U>(self, f: F) -> Map<Self, F>
fn map<F, U>(self, f: F) -> Map<Self, F>
Maps this stream’s items to a different type, returning a new stream of
the resulting type. Read more
Source§fn then<F, Fut>(self, f: F) -> Then<Self, F, Fut>
fn then<F, Fut>(self, f: F) -> Then<Self, F, Fut>
Computes from this stream’s items new items of a different type using
an asynchronous closure. Read more
Source§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>,
Self: Sized,
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>,
Self: Sized,
Execute an accumulating asynchronous computation over a stream,
collecting all the values into one final result. Read more
Source§fn take_while<F, Fut>(self, f: F) -> TakeWhile<Self, Self::Item, F, Fut>
fn take_while<F, Fut>(self, f: F) -> TakeWhile<Self, Self::Item, F, Fut>
Take elements from this stream while the provided asynchronous predicate
resolves to
true
. Read moreSource§fn skip_while<F, Fut>(self, f: F) -> SkipWhile<Self, Self::Item, F, Fut>
fn skip_while<F, Fut>(self, f: F) -> SkipWhile<Self, Self::Item, F, Fut>
Skip elements on this stream while the provided asynchronous predicate
resolves to
true
. Read moreSource§fn timeout(self, timeout: Duration) -> Timeout<Self>where
Self: Sized,
fn timeout(self, timeout: Duration) -> Timeout<Self>where
Self: Sized,
Add timeout to stream. Read more
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