Lines Matching refs:settings
102 /// Enum representing the different settings that can be included in a SETTINGS
169 settings: Vec<Setting>,
200 settings: Vec<Setting>,
360 /// Creates a new Settings instance containing the provided settings.
361 pub fn new(settings: Vec<Setting>) -> Self {
362 Settings { settings }
365 /// Returns a slice of the settings.
367 &self.settings
374 .settings
380 self.settings.push(setting);
384 /// Returns the total length of the settings when encoded.
386 let settings_count = self.settings.len();
419 SettingsBuilder { settings: vec![] }
424 self.settings.push(Setting::HeaderTableSize(size));
430 self.settings.push(Setting::EnablePush(is_enable));
436 self.settings.push(Setting::InitialWindowSize(size));
442 self.settings.push(Setting::MaxFrameSize(size));
448 self.settings.push(Setting::MaxHeaderListSize(size));
459 /// let settings = SettingsBuilder::new()
466 Settings::new(self.settings)
625 let settings = SettingsBuilder::new()
632 let mut setting_iter = settings.get_settings().iter();
641 // Check that there are no more settings
687 /// 1. Creates a `Settings` instance with a list of settings.
688 /// 2. Checks if the list of settings in the `Settings` instance is correct.
689 /// 3. Checks if the encoded length of the settings is correct.
698 let settings = Settings::new(settings_list.clone());
699 assert_eq!(settings.get_settings(), settings_list.as_slice());
701 let encoded_len = settings.encoded_len();