pub struct BytePool {}
Expand description
Byte pools a specialized structure that allows you to reuse byte slices instead of allocating new ones.
When an byteslice is returned to the pool, it is immediately reused.
Do not use this if you are using a BinaryStream
in multiple threads.
This will cause latency issues.
Auto Trait Implementations§
impl Freeze for BytePool
impl RefUnwindSafe for BytePool
impl Send for BytePool
impl Sync for BytePool
impl Unpin for BytePool
impl UnwindSafe for BytePool
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