/// Composes this `Filter` with a function receiving the extracted value.
///
/// The function should return some `IntoFuture` type.
///
/// # Example
///
/// ```
/// use warp::Filter;
///
/// // Validate after `/:id`
/// warp::path::param().and_then(|id: u64| {
///     if id != 0 {
///         Ok(format!("Hello #{}", id))
///     } else {
///         Err(warp::reject())
///     }
/// });
/// ```
Composes this `Filter` with a function receiving the extracted value.
The function should return some `IntoFuture` type.
Composes this ` Filter ` with a function receiving the extracted value . The function should return some ` IntoFuture ` type .
fn and_then<F>(self, fun: F) -> AndThen<Self, F>
    where
        Self: Sized,
        F: Func<Self::Extract> + Clone,
        F::Output: IntoFuture + Send,
        <F::Output as IntoFuture>::Error: CombineRejection<Self::Error>,
        <F::Output as IntoFuture>::Future: Send,
    {
        AndThen {
            filter: self,
            callback: fun,
        }
    }
fn and_then < F > ( self , fun : F ) -> AndThen < Self , F > where Self : Sized , F : Func < Self :: Extract > + Clone , F :: Output : IntoFuture + Send , < F :: Output as IntoFuture > :: Error : CombineRejection < Self :: Error > , < F :: Output as IntoFuture > :: Future : Send , { AndThen { filter : self , callback : fun , } }
Composes this `Filter` with a function receiving the extracted value.
Composes this ` Filter ` with a function receiving the extracted value .
self
fun
F
example
```
use warp::Filter.


` ` ` use warp :: Filter .