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
Auto Trait Implementations§
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