Function rweb::filters::ext::optional[][src]

pub fn optional<T>() -> impl Filter + Copy where
    T: 'static + Clone + Send + Sync

Get a previously set extension of the current route.

If the extension doesn’t exist, it yields None.