Trait actix_web::actix::fut::WrapStream [−][src]
pub trait WrapStream<A> where
A: Actor,
<Self::Stream as ActorStream>::Item == Self::Item,
<Self::Stream as ActorStream>::Error == Self::Error,
<Self::Stream as ActorStream>::Actor == A, { type Stream: ActorStream; type Item; type Error; fn into_actor(self, a: &A) -> Self::Stream; }
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