pub struct Codec(/* private fields */);
Implementations§
Source§impl Codec
impl Codec
Sourcepub fn set_recv_frame_size(&self, val: usize)
pub fn set_recv_frame_size(&self, val: usize)
Updates the max received frame size.
The change takes effect the next time a frame is decoded. In other
words, if a frame is currently in process of being decoded with a frame
size greater than val
but less than the max frame size in effect
before calling this function, then the frame will be allowed.
Sourcepub fn recv_frame_size(&self) -> u32
pub fn recv_frame_size(&self) -> u32
Local max frame size.
Sourcepub fn set_recv_header_list_size(&self, val: usize)
pub fn set_recv_header_list_size(&self, val: usize)
Set the max header list size that can be received.
By default value is set to 48kb
Sourcepub fn set_max_header_continuations(&self, val: usize)
pub fn set_max_header_continuations(&self, val: usize)
Set the max header continuation frames.
By default value is set to 5
Sourcepub fn set_send_frame_size(&self, val: usize)
pub fn set_send_frame_size(&self, val: usize)
Set the peer’s max frame size.
Sourcepub fn set_send_header_table_size(&self, val: usize)
pub fn set_send_header_table_size(&self, val: usize)
Set the peer’s header table size size.
Sourcepub fn send_frame_size(&self) -> u32
pub fn send_frame_size(&self) -> u32
Remote max frame size.
Trait Implementations§
Source§impl Decoder for Codec
impl Decoder for Codec
Auto Trait Implementations§
impl Freeze for Codec
impl !RefUnwindSafe for Codec
impl !Send for Codec
impl !Sync for Codec
impl Unpin for Codec
impl !UnwindSafe for Codec
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