pub struct HyperStream<S>(/* private fields */);Expand description
A stream wrapper for hyper.
Implementations§
Trait Implementations§
Source§impl<S> Debug for HyperStream<S>
impl<S> Debug for HyperStream<S>
Source§impl<S: AsyncWrite + Unpin + 'static> Write for HyperStream<S>
impl<S: AsyncWrite + Unpin + 'static> Write for HyperStream<S>
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>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempts to flush the object. Read more
Source§fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_shutdown(self: Pin<&mut Self>, cx: &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 moreAuto Trait Implementations§
impl<S> Freeze for HyperStream<S>
impl<S> !RefUnwindSafe for HyperStream<S>
impl<S> Send for HyperStream<S>
impl<S> Sync for HyperStream<S>
impl<S> Unpin for HyperStream<S>
impl<S> !UnwindSafe for HyperStream<S>
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