pub struct hyper_buf(/* private fields */);
Available on crate feature
ffi
and hyper_unstable_ffi
only.Expand description
A buffer of bytes that is sent or received on a hyper_body
.
Obtain one of these in the callback of hyper_body_foreach
or by receiving
a task of type HYPER_TASK_BUF
from hyper_executor_poll
(after calling
hyper_body_data
and pushing the resulting task).
Methods:
- hyper_buf_bytes: Get a pointer to the bytes in this buffer.
- hyper_buf_copy: Create a new hyper_buf * by copying the provided bytes.
- hyper_buf_free: Free this buffer.
- hyper_buf_len: Get the length of the bytes this buffer contains.
Auto Trait Implementations§
impl !Freeze for hyper_buf
impl RefUnwindSafe for hyper_buf
impl Send for hyper_buf
impl Sync for hyper_buf
impl Unpin for hyper_buf
impl UnwindSafe for hyper_buf
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