pub struct Encoder { /* private fields */ }Implementations§
source§impl Encoder
impl Encoder
pub fn new(max_size: usize, capacity: usize) -> Encoder
sourcepub fn update_max_size(&mut self, val: usize)
pub fn update_max_size(&mut self, val: usize)
Queues a max size update.
The next call to encode will include a dynamic size update frame.
sourcepub fn encode<I>(&mut self, headers: I, dst: &mut BytesMut)where
I: IntoIterator<Item = Header<Option<HeaderName>>>,
pub fn encode<I>(&mut self, headers: I, dst: &mut BytesMut)where
I: IntoIterator<Item = Header<Option<HeaderName>>>,
Encode a set of headers into the provide buffer