Function warp::filters::ext::get

source ·
pub fn get<T: Clone + Send + Sync + 'static>() -> impl Filter<Extract = (T,), Error = Rejection> + Copy
Expand description

Get a previously set extension of the current route.

If the extension doesn’t exist, this rejects with a MissingExtension.