split Client into (Client, Connection) (#107)
The Connection type is a `Future` that drives all of the IO of the client connection. The Client type is separate, and is used to send requests into the connection.
This commit is contained in:
@@ -251,9 +251,8 @@ impl State {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns true if a stream with the current state counts against the
|
||||
/// concurrency limit.
|
||||
pub fn is_counted(&self) -> bool {
|
||||
/// Returns true if a stream is open or half-closed.
|
||||
pub fn is_at_least_half_open(&self) -> bool {
|
||||
match self.inner {
|
||||
Open {
|
||||
..
|
||||
|
||||
Reference in New Issue
Block a user