# actix_web::actix::fut - Rust
API documentation for the Rust `fut` mod in crate `actix_web`.
Keywords: rust, rustlang, rust-lang, fut

# Module actix_web::actix::fut [−]

Custom `Future` implementation with `Actix` support

## Structs

AndThen | Future for the `and_then` combinator, chaining a computation onto the end of another future which completes successfully.
DropErr |
Finish | A combinator used to convert stream into a future, future resolves when stream completes.
FromErr | Future for the `from_err` combinator, changing the error type of a future.
FutureResult | A future representing a value that is immediately ready.
FutureWrap |
Map | Future for the `map` combinator, changing the type of a future.
MapErr | Future for the `map_err` combinator, changing the error type of a future.
StreamAndThen | A stream combinator which chains a computation onto values produced by a stream.
StreamFinish | A combinator used to convert stream into a future, future resolves when stream completes.
StreamFold | A future used to collect all the results of a stream into one generic type.
StreamMap | A stream combinator which will change the type of a stream from one type to another.
StreamMapErr | A stream combinator which will change the error type of a stream from one type to another.
StreamThen | A stream combinator which chains a computation onto each item produced by a stream.
StreamTimeout | Future for the `timeout` combinator, interrupts computations if it takes more than `timeout`.
StreamWrap |
Then | Future for the `then` combinator, chaining computations on the end of another future regardless of its outcome.
Timeout | Future for the `timeout` combinator, interrupts computations if it takes more than `timeout`.

## Enums

Either | Combines two different futures yielding the same item and error types into a single type.

## Traits

ActorFuture | Trait for types which are a placeholder of a value that may become available at some later point in time.
ActorStream | A stream of values, not all of which may have been produced yet.
IntoActorFuture | Class of types which can be converted into an actor future.
WrapFuture | Helper trait that allows conversion of normal future into `ActorFuture`
WrapStream | Helper trait that allows conversion of normal stream into `ActorStream`

## Functions

err | Creates a "leaf future" from an immediate value of a failed computation.
ok | Creates a "leaf future" from an immediate value of a finished and successful computation.
result | Creates a new "leaf future" which will resolve with the given result.
wrap_future | Converts normal future into `ActorFuture`
wrap_stream | Converts normal stream into `ActorStream`

# 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`)