Trait actix::fut::stream::WrapStream

source ·
pub trait WrapStream<A>
where A: Actor,
{ type Stream: ActorStream<A>; // Required method fn into_actor(self, a: &A) -> Self::Stream; }
Expand description

Helper trait that allows conversion of normal stream into ActorStream

Required Associated Types§

source

type Stream: ActorStream<A>

The stream that this type can be converted into.

Required Methods§

source

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

Convert normal stream to a ActorStream

Implementors§

source§

impl<S, A> WrapStream<A> for S
where S: Stream, A: Actor,

§

type Stream = StreamWrap<S, A>