File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ pub trait Service<Request> {
28
28
type Future : Future < Output = Result < Self :: Response , Self :: Error > > ;
29
29
30
30
/// Process the request and return the response asynchronously.
31
- /// call takes a &self instead of a mut &self because:
31
+ /// ` call` takes ` &self` instead of ` mut &self` because:
32
32
/// - It prepares the way for async fn,
33
- /// since then the future only borrows &self, and thus a Service can concurrently handle
33
+ /// since then the future only borrows ` &self` , and thus a Service can concurrently handle
34
34
/// multiple outstanding requests at once.
35
35
/// - It's clearer that Services can likely be cloned
36
- /// - To share state across clones you generally need Arc<Mutex<_>>
37
- /// that means you're not really using the &mut self and could do with a &self
38
- /// To see the discussion on this see : <https://github.com/hyperium/hyper/issues/3040>
36
+ /// - To share state across clones, you generally need ` Arc<Mutex<_>>`
37
+ /// That means you're not really using the ` &mut self` and could do with a ` &self`.
38
+ /// The discussion on this is here : <https://github.com/hyperium/hyper/issues/3040>
39
39
fn call ( & self , req : Request ) -> Self :: Future ;
40
40
}
You can’t perform that action at this time.
0 commit comments