Work on prioritization
This commit is contained in:
@@ -44,6 +44,14 @@ impl<T> Data<T> {
|
||||
self.flags.is_end_stream()
|
||||
}
|
||||
|
||||
pub fn set_end_stream(&mut self) {
|
||||
self.flags.set_end_stream();
|
||||
}
|
||||
|
||||
pub fn unset_end_stream(&mut self) {
|
||||
self.flags.unset_end_stream();
|
||||
}
|
||||
|
||||
pub fn head(&self) -> Head {
|
||||
Head::new(Kind::Data, self.flags.into(), self.stream_id)
|
||||
}
|
||||
@@ -127,6 +135,10 @@ impl DataFlag {
|
||||
self.0 |= END_STREAM
|
||||
}
|
||||
|
||||
pub fn unset_end_stream(&mut self) {
|
||||
self.0 &= !END_STREAM
|
||||
}
|
||||
|
||||
pub fn is_padded(&self) -> bool {
|
||||
self.0 & PADDED == PADDED
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user