pub struct Encoder { /* private fields */ }Implementations
sourceimpl 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
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl !UnwindSafe for Encoder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more