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; }

Helper trait that allows conversion of normal stream into ActorStream

Associated Types

type Stream: ActorStream<Item = Self::Item, Actor = A>[src]

The stream that this type can be converted into.

type Item[src]

The item that the future may resolve with.

Loading content...

Required methods

fn into_actor(self, a: &A) -> Self::Stream[src]

Convert normal stream to a ActorStream

Loading content...

Implementors

impl<S: Stream, A: Actor> WrapStream<A> for S[src]

type Stream = StreamWrap<S, A>

type Item = S::Item

Loading content...