[−]Trait actix_web::actix::fut::WrapStream
Helper trait that allows conversion of normal stream into ActorStream
Associated Types
type Stream: ActorStream
The stream that this type can be converted into.
type Item
The item that the future may resolve with.
type Error
The error that the future may resolve with.
Required Methods
fn into_actor(self, a: &A) -> Self::Stream
Convert normal stream to a ActorStream
Implementors
impl<S, A> WrapStream<A> for S where
A: Actor,
S: Stream,
impl<S, A> WrapStream<A> for S where
A: Actor,
S: Stream,
type Stream = StreamWrap<S, A>
type Item = <S as Stream>::Item
type Error = <S as Stream>::Error
fn into_actor(self, &A) -> <S as WrapStream<A>>::Stream
fn into_actor(self, &A) -> <S as WrapStream<A>>::Stream