[−][src]Function izanami_http::upgrade::upgrade_fn
pub fn upgrade_fn<I, R>(
f: impl FnOnce(I) -> Result<R, I>
) -> impl HttpUpgrade<I, Upgraded = R, Error = R::Error> where
R: Connection,
Creates an instance of HttpUpgrade
using the provided function.