tower-web icon indicating copy to clipboard operation
tower-web copied to clipboard

Document when cloning occurs

Open shepmaster opened this issue 7 years ago • 0 comments

Resource uses multiple Clone bounds:

pub trait Resource: Clone {
    type Destination: Clone + Send + Sync + 'static;

For implementors, it would be nice to know a rough estimate of how frequently this happens. Is it per request (a.k.a. "frequently"), per-thread (a.k.a. "not too frequent"), etc.

I think this would be useful whenever a trait requires Clone.

shepmaster avatar Aug 25 '18 17:08 shepmaster