Struct gio::OutputStreamAsyncWrite
source · [−]pub struct OutputStreamAsyncWrite<T: IsA<PollableOutputStream>>(_, _);
Implementations
sourceimpl<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
sourceimpl<T: IsA<PollableOutputStream>> AsyncWrite for OutputStreamAsyncWrite<T>
impl<T: IsA<PollableOutputStream>> AsyncWrite for OutputStreamAsyncWrite<T>
sourcefn 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 more
sourcefn 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
Auto 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
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