warp::filters::path

Function filter_segment

source
fn filter_segment<F, U>(
    func: F,
) -> impl Filter<Extract = U, Error = Rejection> + Copy
where F: Fn(&str) -> Result<U, Rejection> + Copy, U: Tuple + Send + 'static,