Struct gio::IOStreamAsyncReadWrite
source · 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