I propose that we move forward to allow Request<B: Clone> to impl Clone. The big blocker here is that extensions is not clonable. This could be fixed by making a AnyClone trait:
pub trait AnyClone: Any + Clone {}
The downside here is that all things you store in extensions is cloneable but I think this is a fair trade off since mostly its just information that could be thrown behind an arc or bytes.
cc @seanmonstar @carllerche @hawkw @davidbarsky
I propose that we move forward to allow
Request<B: Clone>toimpl Clone. The big blocker here is thatextensionsis not clonable. This could be fixed by making a AnyClone trait:The downside here is that all things you store in extensions is cloneable but I think this is a fair trade off since mostly its just information that could be thrown behind an arc or bytes.
cc @seanmonstar @carllerche @hawkw @davidbarsky