pub struct IOStreamAsyncReadWrite<T> { /* private fields */ }
Implementations§
Source§impl<T: IsA<IOStream>> IOStreamAsyncReadWrite<T>
impl<T: IsA<IOStream>> IOStreamAsyncReadWrite<T>
pub fn input_stream(&self) -> &PollableInputStream
pub fn output_stream(&self) -> &PollableOutputStream
pub fn into_io_stream(self) -> T
pub fn io_stream(&self) -> &T
Trait Implementations§
Source§impl<T: IsA<IOStream> + Unpin> AsyncRead for IOStreamAsyncReadWrite<T>
impl<T: IsA<IOStream> + Unpin> AsyncRead for IOStreamAsyncReadWrite<T>
Source§impl<T: IsA<IOStream> + Unpin> AsyncWrite for IOStreamAsyncReadWrite<T>
impl<T: IsA<IOStream> + Unpin> AsyncWrite for IOStreamAsyncReadWrite<T>
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 object. 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>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more
Auto Trait Implementations§
impl<T> Freeze for IOStreamAsyncReadWrite<T>where
T: Freeze,
impl<T> !RefUnwindSafe for IOStreamAsyncReadWrite<T>
impl<T> !Send for IOStreamAsyncReadWrite<T>
impl<T> !Sync for IOStreamAsyncReadWrite<T>
impl<T> Unpin for IOStreamAsyncReadWrite<T>where
T: Unpin,
impl<T> !UnwindSafe for IOStreamAsyncReadWrite<T>
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