Trait warp::filter::FilterBase
source · pub trait FilterBase {
type Extract: Tuple;
type Error: IsReject;
type Future: Future<Output = Result<Self::Extract, Self::Error>> + Send;
// Required method
fn filter(&self, internal: Internal) -> Self::Future;
// Provided method
fn map_err<F, E>(self, _internal: Internal, fun: F) -> MapErr<Self, F>
where Self: Sized,
F: Fn(Self::Error) -> E + Clone,
E: Debug + Send { ... }
}