pub struct PooledPacket { /* private fields */ }Expand description
A pooled packet buffer that can be reused to reduce allocations.
Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for PooledPacket
impl AsRef<[u8]> for PooledPacket
Source§impl Clone for PooledPacket
impl Clone for PooledPacket
Source§fn clone(&self) -> PooledPacket
fn clone(&self) -> PooledPacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PooledPacket
impl RefUnwindSafe for PooledPacket
impl Send for PooledPacket
impl Sync for PooledPacket
impl Unpin for PooledPacket
impl UnwindSafe for PooledPacket
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