Get receiving data working

This commit is contained in:
Carl Lerche
2017-08-07 12:48:50 -07:00
parent 71acfe3961
commit 6053ee059d
5 changed files with 86 additions and 39 deletions

View File

@@ -203,6 +203,13 @@ impl State {
}
}
pub fn is_recv_closed(&self) -> bool {
match self.inner {
Closed(..) | HalfClosedRemote(..) => true,
_ => false,
}
}
pub fn recv_flow_control(&mut self) -> Option<&mut FlowControl> {
match self.inner {
Open { ref mut remote, .. } |