Notify RecvStream tasks if SendStream sends a local reset

This commit is contained in:
Sean McArthur
2019-03-12 12:13:02 -07:00
parent e3a73f726e
commit feff97905f
3 changed files with 108 additions and 12 deletions

View File

@@ -321,6 +321,11 @@ impl Mock<frame::Reset> {
let id = self.0.stream_id();
Mock(frame::Reset::new(id, frame::Reason::INTERNAL_ERROR))
}
pub fn reason(self, reason: frame::Reason) -> Self {
let id = self.0.stream_id();
Mock(frame::Reset::new(id, reason))
}
}
impl From<Mock<frame::Reset>> for SendFrame {