The usage of TokioTimer in the example differs from how it would be used with the hyper-util crate. When you try to use the code like you see in the example, it says the type is private, but it is clearly public in the source code of hyper-util. After coming back to this months later, it seems that in hyper-util itself, the usage of #[non_exhaustive] makes the type unconstructable outside the crate, which necessitates using the ::new() method.
The usage of TokioTimer in the example differs from how it would be used with the hyper-util crate. When you try to use the code like you see in the example, it says the type is private, but it is clearly public in the source code of hyper-util. After coming back to this months later, it seems that in hyper-util itself, the usage of
#[non_exhaustive]
makes the type unconstructable outside the crate, which necessitates using the ::new() method.