Struct gio::IOStreamAsyncReadWrite
source · [−]pub struct IOStreamAsyncReadWrite<T> { /* private fields */ }
Implementations
sourceimpl<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
sourceimpl<T: IsA<IOStream> + Unpin> AsyncRead for IOStreamAsyncReadWrite<T>
impl<T: IsA<IOStream> + Unpin> AsyncRead for IOStreamAsyncReadWrite<T>
sourceimpl<T: IsA<IOStream> + Unpin> AsyncWrite for IOStreamAsyncReadWrite<T>
impl<T: IsA<IOStream> + Unpin> AsyncWrite for IOStreamAsyncReadWrite<T>
sourcefn 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 more
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more