pub struct Settings {
flags: SettingsFlags,
header_table_size: Option<u32>,
enable_push: Option<u32>,
max_concurrent_streams: Option<u32>,
initial_window_size: Option<u32>,
max_frame_size: Option<u32>,
max_header_list_size: Option<u32>,
enable_connect_protocol: Option<u32>,
}
Fields§
§flags: SettingsFlags
§header_table_size: Option<u32>
§enable_push: Option<u32>
§max_concurrent_streams: Option<u32>
§initial_window_size: Option<u32>
§max_frame_size: Option<u32>
§max_header_list_size: Option<u32>
§enable_connect_protocol: Option<u32>
Implementations§
source§impl Settings
impl Settings
pub fn ack() -> Settings
pub fn is_ack(&self) -> bool
pub fn initial_window_size(&self) -> Option<u32>
pub fn set_initial_window_size(&mut self, size: Option<u32>)
pub fn max_concurrent_streams(&self) -> Option<u32>
pub fn set_max_concurrent_streams(&mut self, max: Option<u32>)
pub fn max_frame_size(&self) -> Option<u32>
pub fn set_max_frame_size(&mut self, size: Option<u32>)
pub fn max_header_list_size(&self) -> Option<u32>
pub fn set_max_header_list_size(&mut self, size: Option<u32>)
pub fn is_push_enabled(&self) -> Option<bool>
pub fn set_enable_push(&mut self, enable: bool)
pub fn is_extended_connect_protocol_enabled(&self) -> Option<bool>
pub fn set_enable_connect_protocol(&mut self, val: Option<u32>)
pub fn header_table_size(&self) -> Option<u32>
pub fn set_header_table_size(&mut self, size: Option<u32>)
pub fn load(head: Head, payload: &[u8]) -> Result<Settings, Error>
fn payload_len(&self) -> usize
pub fn encode(&self, dst: &mut BytesMut)
fn for_each<F: FnMut(Setting)>(&self, f: F)
Trait Implementations§
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.