Function tsukuyomi::extractor::extension

source ·
pub fn extension<T>(
) -> impl Extractor<Output = (T,), Error = Error, Extract = impl TryFuture<Ok = (T,), Error = Error> + Send + 'static>where
    T: Clone + Send + Sync + 'static,
Expand description

Creates an Extractor that returns the value of extension of the specified type.