pub fn need_write(&mut self) -> io::Result<()> {
        let bits = super::ready2usize(Ready::writable());
        self.readiness &= !bits;

        let inner = match self.handle.inner() {
            Some(inner) => inner,
            None => return Err(io::Error::new(io::ErrorKind::Other, "reactor gone")),
        };
        inner.schedule(self.token, Direction::Write);
        Ok(())
    }
/// Indicates to this source of events that the corresponding I/O object is
/// no longer writable, but it needs to be.
///
/// This function, like `poll_write`, is only safe to call from the context
/// of a future's task (typically in a `Future::poll` implementation). It
/// informs this readiness stream that the underlying object is no longer
/// writable, typically because a "would block" error was seen.
///
/// The flag indicating that this stream is writable is unset and the
/// current task is scheduled to receive a notification when the stream is
/// then again writable.
///
/// Note that it is also only valid to call this method if `poll_write`
/// previously indicated that the object is writable. That is, this function
/// must always be paired with calls to `poll_write` previously.
///
/// # Errors
///
/// This function will return an error if the `Reactor` that this `PollEvented`
/// is associated with has gone away (been destroyed). The error means that
/// the ambient futures task could not be scheduled to receive a
/// notification and typically means that the error should be propagated
/// outwards.
///
/// # Panics
///
/// This function will panic if called outside the context of a future's
/// task.
Indicates to this source of events that the corresponding I/O object is
no longer writable, but it needs to be.

This function, like `poll_write`, is only safe to call from the context
of a future's task (typically in a `Future::poll` implementation). It
informs this readiness stream that the underlying object is no longer
writable, typically because a "would block" error was seen.

The flag indicating that this stream is writable is unset and the
current task is scheduled to receive a notification when the stream is
then again writable.

Note that it is also only valid to call this method if `poll_write`
previously indicated that the object is writable. That is, this function
must always be paired with calls to `poll_write` previously.
Indicates to this source of events that the corresponding I / O object is no longer writable but it needs to be . This function like ` poll_write ` is only safe to call from the context of a future ' s task ( typically in a ` Future :: poll ` implementation ) . It informs this readiness stream that the underlying object is no longer writable typically because a " would block " error was seen . The flag indicating that this stream is writable is unset and the current task is scheduled to receive a notification when the stream is then again writable . Note that it is also only valid to call this method if ` poll_write ` previously indicated that the object is writable . That is this function must always be paired with calls to ` poll_write ` previously .
pub fn need_write(&mut self) -> io::Result<()> {
        let bits = super::ready2usize(Ready::writable());
        self.readiness &= !bits;
        let inner = match self.handle.inner() {
            Some(inner) => inner,
            None => return Err(io::Error::new(io::ErrorKind::Other, "reactor gone")),
        };
        inner.schedule(self.token, Direction::Write);
        Ok(())
    }
pub fn need_write ( & mut self ) -> io :: Result < ( ) > { let bits = super :: ready2usize ( Ready :: writable ( ) ) ; self . readiness &= ! bits ; let inner = match self . handle . inner ( ) { Some ( inner ) => inner , None => return Err ( io :: Error :: new ( io :: ErrorKind :: Other , " " ) ) , } ; inner . schedule ( self . token , Direction :: Write ) ; Ok ( ( ) ) }
Indicates to this source of events that the corresponding I/O object is
no longer writable, but it needs to be.
Indicates to this source of events that the corresponding I / O object is no longer writable but it needs to be .
&mut self
&mut self
errors
This function will return an error if the `Reactor` that this `PollEvented`
is associated with has gone away (been destroyed). The error means that
the ambient futures task could not be scheduled to receive a
notification and typically means that the error should be propagated
outwards.
This function will return an error if the ` Reactor ` that this ` PollEvented ` is associated with has gone away ( been destroyed ) . The error means that the ambient futures task could not be scheduled to receive a notification and typically means that the error should be propagated outwards .
panics
This function will panic if called outside the context of a future's
task.
This function will panic if called outside the context of a future ' s task .