Struct s2n_quic_transport::endpoint::PacketBuffer
source · [−]pub struct PacketBuffer { /* private fields */ }
Expand description
Allocates a large single buffer, rather than several small buffers
Used for sending packets that contain CONNECTION_CLOSE frames.
Implementations
sourceimpl Buffer
impl Buffer
pub fn write<F: FnOnce(EncoderBuffer<'_>) -> EncoderBuffer<'_>>(
&mut self,
on_write: F
) -> Option<Bytes>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more