feat(server): add service property to server::conn::Parts
				
					
				
			This allows getting the original service back. Closes #1471 Cherry-pick of commit bf7c0bbf4f55fdf465407874b0b2d4bd748e6783 from the 0.11.x branch.
This commit is contained in:
		
				
					committed by
					
						 Ran Benita
						Ran Benita
					
				
			
			
				
	
			
			
			
						parent
						
							f98f168f07
						
					
				
				
					commit
					18c5f640e2
				
			| @@ -27,7 +27,7 @@ pub(crate) trait Dispatch { | ||||
|  | ||||
| pub struct Server<S: Service> { | ||||
|     in_flight: Option<S::Future>, | ||||
|     service: S, | ||||
|     pub(crate) service: S, | ||||
| } | ||||
|  | ||||
| pub struct Client<B> { | ||||
| @@ -58,8 +58,9 @@ where | ||||
|         self.conn.disable_keep_alive() | ||||
|     } | ||||
|  | ||||
|     pub fn into_inner(self) -> (I, Bytes) { | ||||
|         self.conn.into_inner() | ||||
|     pub fn into_inner(self) -> (I, Bytes, D) { | ||||
|         let (io, buf) = self.conn.into_inner(); | ||||
|         (io, buf, self.dispatch) | ||||
|     } | ||||
|  | ||||
|     /// The "Future" poll function. Runs this dispatcher until the | ||||
|   | ||||
		Reference in New Issue
	
	Block a user