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_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more