pub struct FramedRead<T> {
inner: FramedRead<T, LengthDelimitedCodec>,
hpack: Decoder,
max_header_list_size: usize,
max_continuation_frames: usize,
partial: Option<Partial>,
}
Fields§
§inner: FramedRead<T, LengthDelimitedCodec>
§hpack: Decoder
§max_header_list_size: usize
§max_continuation_frames: usize
§partial: Option<Partial>
Implementations§
Source§impl<T> FramedRead<T>
impl<T> FramedRead<T>
pub fn new(inner: InnerFramedRead<T, LengthDelimitedCodec>) -> FramedRead<T>
pub fn get_ref(&self) -> &T
pub fn get_mut(&mut self) -> &mut T
Sourcepub fn max_frame_size(&self) -> usize
pub fn max_frame_size(&self) -> usize
Returns the current max frame size setting
Sourcepub fn set_max_frame_size(&mut self, val: usize)
pub fn set_max_frame_size(&mut self, val: usize)
Updates the max frame size setting.
Must be within 16,384 and 16,777,215.
Sourcepub fn set_max_header_list_size(&mut self, val: usize)
pub fn set_max_header_list_size(&mut self, val: usize)
Update the max header list size setting.
Sourcepub fn set_header_table_size(&mut self, val: usize)
pub fn set_header_table_size(&mut self, val: usize)
Update the header table size setting.
Trait Implementations§
Source§impl<T: Debug> Debug for FramedRead<T>
impl<T: Debug> Debug for FramedRead<T>
Source§impl<T> Stream for FramedRead<T>
impl<T> Stream for FramedRead<T>
Auto Trait Implementations§
impl<T> !Freeze for FramedRead<T>
impl<T> RefUnwindSafe for FramedRead<T>where
T: RefUnwindSafe,
impl<T> Send for FramedRead<T>where
T: Send,
impl<T> Sync for FramedRead<T>where
T: Sync,
impl<T> Unpin for FramedRead<T>where
T: Unpin,
impl<T> UnwindSafe for FramedRead<T>where
T: UnwindSafe,
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