H3: Make Settings and SettingsFrame the same type

This commit is contained in:
stammw
2019-10-02 13:29:07 +02:00
committed by Dirkjan Ochtman
parent a4e656302b
commit ca0251640a
2 changed files with 3 additions and 18 deletions
+2 -17
View File
@@ -25,24 +25,9 @@ mod streams;
use err_derive::Error;
use quinn::VarInt;
#[derive(Clone, Debug)]
pub struct Settings {
pub max_header_list_size: u64,
pub num_placeholders: u64,
pub qpack_max_table_capacity: u64,
pub qpack_blocked_streams: u64,
}
use proto::frame::SettingsFrame;
impl Default for Settings {
fn default() -> Self {
Self {
max_header_list_size: u64::max_value(),
num_placeholders: 0,
qpack_max_table_capacity: 0,
qpack_blocked_streams: 0,
}
}
}
pub type Settings = SettingsFrame;
#[derive(Debug, Error)]
pub enum Error {
+1 -1
View File
@@ -333,7 +333,7 @@ impl FrameHeader for PriorityFrame {
}
}
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
pub struct SettingsFrame {
pub num_placeholders: u64,
pub max_header_list_size: u64,