pub struct QuicheBuf { /* private fields */ }
Expand description
A pooled, splittable byte buffer for zero-copy [quiche
] calls.
Trait Implementations§
Source§impl BufSplit for QuicheBuf
impl BufSplit for QuicheBuf
Source§fn split_at(&mut self, at: usize) -> Self
fn split_at(&mut self, at: usize) -> Self
Split the buffer at a given point, after the split the old buffer
must only contain the first
at
bytes, while the newly produced
buffer must containt the remaining bytes.Source§fn try_add_prefix(&mut self, prefix: &[u8]) -> bool
fn try_add_prefix(&mut self, prefix: &[u8]) -> bool
Try to append a prefix to the buffer, return true if succeeded.
Auto Trait Implementations§
impl Freeze for QuicheBuf
impl RefUnwindSafe for QuicheBuf
impl Send for QuicheBuf
impl Sync for QuicheBuf
impl Unpin for QuicheBuf
impl UnwindSafe for QuicheBuf
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)