pub struct WriteFuture<'a, O>where
O: AsyncOutput + ?Sized,{ /* private fields */ }Expand description
Future for one AsyncOutput write operation.
§Panics
Future::poll panics when called again after this future has returned
Poll::Ready.
§Type Parameters
'a: Shared lifetime of the output borrow and source slice.O: Asynchronous output type.
Implementations§
Source§impl<'a, O> WriteFuture<'a, O>where
O: AsyncOutput + ?Sized,
impl<'a, O> WriteFuture<'a, O>where
O: AsyncOutput + ?Sized,
Trait Implementations§
Source§impl<O> Future for WriteFuture<'_, O>where
O: AsyncOutput + ?Sized,
impl<O> Future for WriteFuture<'_, O>where
O: AsyncOutput + ?Sized,
Source§fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Polls the write operation.
§Parameters
cx: Task context used to register a wake-up.
§Returns
Returns Poll::Pending when the output is not ready. A ready success
contains the number of items accepted.
§Errors
Returns an I/O error reported by the output.
§Panics
Panics when polled after returning Poll::Ready.
Auto Trait Implementations§
impl<'a, O> !UnwindSafe for WriteFuture<'a, O>
impl<'a, O> Freeze for WriteFuture<'a, O>
impl<'a, O> RefUnwindSafe for WriteFuture<'a, O>
impl<'a, O> Send for WriteFuture<'a, O>
impl<'a, O> Sync for WriteFuture<'a, O>
impl<'a, O> Unpin for WriteFuture<'a, O>
impl<'a, O> UnsafeUnpin for WriteFuture<'a, O>
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more