Trait actix::fut::WrapStream [−][src]
pub trait WrapStream<A> where
A: Actor, {
type Stream: ActorStream<Item = Self::Item, Actor = A>;
type Item;
fn into_actor(self, a: &A) -> Self::Stream;
}
Expand description
Helper trait that allows conversion of normal stream into ActorStream
Associated Types
type Stream: ActorStream<Item = Self::Item, Actor = A>
type Stream: ActorStream<Item = Self::Item, Actor = A>
The stream that this type can be converted into.
Required methods
fn into_actor(self, a: &A) -> Self::Stream
fn into_actor(self, a: &A) -> Self::Stream
Convert normal stream to a ActorStream