pub struct Stream<S> { /* private fields */ }
Trait Implementations§
Source§impl<S> Connection for Stream<S>where
S: Connection,
impl<S> Connection for Stream<S>where
S: Connection,
Source§impl<S> Write for Stream<S>where
S: Write,
impl<S> Write for Stream<S>where
S: Write,
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize, Error>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>
Attempt to write bytes from
buf
into the destination. Read moreSource§fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Attempts to flush the object. Read more
Source§fn poll_shutdown(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_shutdown( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
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<'pin, S> Unpin for Stream<S>where
PinnedFieldsOf<__Stream<'pin, S>>: Unpin,
Auto Trait Implementations§
impl<S> Freeze for Stream<S>where
S: Freeze,
impl<S> !RefUnwindSafe for Stream<S>
impl<S> Send for Stream<S>where
S: Send,
impl<S> Sync for Stream<S>where
S: Sync,
impl<S> !UnwindSafe for Stream<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