Start hooking up data receiving

This commit is contained in:
Carl Lerche
2017-08-07 12:17:52 -07:00
parent d918215397
commit 71acfe3961
8 changed files with 181 additions and 33 deletions

View File

@@ -67,6 +67,15 @@ pub enum Frame<T = Bytes> {
}
impl<T> Frame<T> {
/// Returns true if the frame is a DATA frame.
pub fn is_data(&self) -> bool {
use self::Frame::*;
match *self {
Data(..) => true,
_ => false,
}
}
}
impl<T> fmt::Debug for Frame<T> {