Struct h2::codec::framed_write::Encoder
source · struct Encoder<B> {
hpack: Encoder,
buf: Cursor<BytesMut>,
next: Option<Next<B>>,
last_data_frame: Option<Data<B>>,
max_frame_size: u32,
chain_threshold: usize,
min_buffer_capacity: usize,
}
Fields§
§hpack: Encoder
HPACK encoder
buf: Cursor<BytesMut>
Write buffer
TODO: Should this be a ring buffer?
next: Option<Next<B>>
Next frame to encode
last_data_frame: Option<Data<B>>
Last data frame
max_frame_size: u32
Max frame size, this is specified by the peer
chain_threshold: usize
Chain payloads bigger than this.
min_buffer_capacity: usize
Min buffer required to attempt to write a frame
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<B> !Freeze for Encoder<B>
impl<B> RefUnwindSafe for Encoder<B>where
B: RefUnwindSafe,
impl<B> Send for Encoder<B>where
B: Send,
impl<B> Sync for Encoder<B>where
B: Sync,
impl<B> Unpin for Encoder<B>where
B: Unpin,
impl<B> UnwindSafe for Encoder<B>where
B: 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