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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Encoder
impl !RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl !UnwindSafe for Encoder
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