pub struct hyper_io { /* private fields */ }
Available on crate feature
ffi
and hyper_unstable_ffi
only.Expand description
A read/write handle for a specific connection.
This owns a specific TCP or TLS connection for the lifetime of that connection. It contains a read and write callback, as well as a void *userdata. Typically the userdata will point to a struct containing a file descriptor and a TLS context.
Methods:
- hyper_io_new: Create a new IO type used to represent a transport.
- hyper_io_set_read: Set the read function for this IO transport.
- hyper_io_set_write: Set the write function for this IO transport.
- hyper_io_set_userdata: Set the user data pointer for this IO to some value.
- hyper_io_free: Free an IO handle.
Trait Implementations§
Source§impl Write for hyper_io
impl Write for hyper_io
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the destination. Read moreSource§fn poll_flush(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<()>>
Attempts to flush the object. Read more
Source§fn poll_shutdown(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<()>>
fn poll_shutdown(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<()>>
Attempts to shut down this writer.
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
Returns whether this writer has an efficient
poll_write_vectored
implementation. Read moreimpl Send for hyper_io
impl Sync for hyper_io
Auto Trait Implementations§
impl Freeze for hyper_io
impl RefUnwindSafe for hyper_io
impl Unpin for hyper_io
impl UnwindSafe for hyper_io
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