# Trait actix_web::actix::actix::dev::WrapStream[−]

    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

## Implementors

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

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)