Struct gio::OutputStreamAsyncWrite
source · pub struct OutputStreamAsyncWrite<T: IsA<PollableOutputStream>>(_, _);
Implementations§
source§impl<T: IsA<PollableOutputStream>> OutputStreamAsyncWrite<T>
impl<T: IsA<PollableOutputStream>> OutputStreamAsyncWrite<T>
pub fn into_output_stream(self) -> T
pub fn output_stream(&self) -> &T
Trait Implementations§
source§impl<T: IsA<PollableOutputStream>> AsyncWrite for OutputStreamAsyncWrite<T>
impl<T: IsA<PollableOutputStream>> AsyncWrite for OutputStreamAsyncWrite<T>
source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8] ) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the object. Read moresource§fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>
fn poll_write_vectored( self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>] ) -> Poll<Result<usize>>
Attempt to write bytes from
bufs
into the object using vectored
IO operations. Read moreAuto Trait Implementations§
impl<T> !RefUnwindSafe for OutputStreamAsyncWrite<T>
impl<T> Send for OutputStreamAsyncWrite<T>where T: Send,
impl<T> Sync for OutputStreamAsyncWrite<T>where T: Sync,
impl<T> Unpin for OutputStreamAsyncWrite<T>where T: Unpin,
impl<T> !UnwindSafe for OutputStreamAsyncWrite<T>
Blanket Implementations§
§impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
impl<W> AsyncWriteExt for Wwhere W: AsyncWrite + ?Sized,
§fn flush(&mut self) -> Flush<'_, Self>where
Self: Unpin,
fn flush(&mut self) -> Flush<'_, Self>where Self: Unpin,
Creates a future which will entirely flush this
AsyncWrite
. Read more§fn close(&mut self) -> Close<'_, Self>where
Self: Unpin,
fn close(&mut self) -> Close<'_, Self>where Self: Unpin,
Creates a future which will entirely close this
AsyncWrite
.§fn write<'a>(&'a mut self, buf: &'a [u8]) -> Write<'a, Self>where
Self: Unpin,
fn write<'a>(&'a mut self, buf: &'a [u8]) -> Write<'a, Self>where Self: Unpin,
Creates a future which will write bytes from
buf
into the object. Read more§fn write_vectored<'a>(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectored<'a, Self>where
Self: Unpin,
fn write_vectored<'a>( &'a mut self, bufs: &'a [IoSlice<'a>] ) -> WriteVectored<'a, Self>where Self: Unpin,
Creates a future which will write bytes from
bufs
into the object using vectored
IO operations. Read moresource§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