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