Since ReadySink isn't public yet, expose Connection::is_ready(). (#7)
Also use http from master
This commit is contained in:
		
				
					committed by
					
						 Carl Lerche
						Carl Lerche
					
				
			
			
				
	
			
			
			
						parent
						
							a203365d79
						
					
				
				
					commit
					bd3a07f9e7
				
			| @@ -71,6 +71,10 @@ impl<T, P, B> Connection<T, P, B> | ||||
|         self.inner.take_pong() | ||||
|     } | ||||
|  | ||||
|     pub fn poll_ready(&mut self) -> Poll<(), ConnectionError> { | ||||
|         self.inner.poll_ready() | ||||
|     } | ||||
|  | ||||
|     pub fn send_data(self, | ||||
|                      id: StreamId, | ||||
|                      data: B, | ||||
| @@ -246,14 +250,3 @@ impl<T, P, B> Sink for Connection<T, P, B> | ||||
|         self.inner.poll_complete() | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl<T, P, B> ReadySink for Connection<T, P, B> | ||||
|     where T: AsyncRead + AsyncWrite, | ||||
|           P: Peer, | ||||
|           B: IntoBuf, | ||||
| { | ||||
|     fn poll_ready(&mut self) -> Poll<(), Self::SinkError> { | ||||
|         trace!("poll_ready"); | ||||
|         self.inner.poll_ready() | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user