Trait packet::ReusableBuffer
source · pub trait ReusableBuffer: GrowBufferMut + ShrinkBuffer { }
Expand description
A byte buffer that can be serialized into multiple times.
ReusableBuffer
is a shorthand for GrowBufferMut + ShrinkBuffer
. A
ReusableBuffer
can be serialized into multiple times - the
ShrinkBuffer
implementation allows the buffer’s capacity to be reclaimed
for a new serialization pass.
Object Safety§
This trait is not object safe.