pub struct DynamicTable { /* private fields */ }Expand description
The decoder’s view of the table the peer is building.
Implementations§
Source§impl DynamicTable
impl DynamicTable
pub fn new(capacity: usize) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn size(&self) -> usize
pub fn capacity(&self) -> usize
Sourcepub fn set_capacity(&mut self, capacity: usize)
pub fn set_capacity(&mut self, capacity: usize)
Apply a dynamic table size update from the peer.
Shrinking evicts immediately; the peer has already done the same, so the two tables stay in step.
Auto Trait Implementations§
impl Freeze for DynamicTable
impl RefUnwindSafe for DynamicTable
impl Send for DynamicTable
impl Sync for DynamicTable
impl Unpin for DynamicTable
impl UnsafeUnpin for DynamicTable
impl UnwindSafe for DynamicTable
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