Add library tracking issue for poll_ready feature
This commit is contained in:
parent
7a7dfa8b67
commit
a1e03fc563
3 changed files with 7 additions and 7 deletions
|
@ -13,5 +13,5 @@ pub use self::wake::{Context, RawWaker, RawWakerVTable, Waker};
|
||||||
mod ready;
|
mod ready;
|
||||||
#[unstable(feature = "ready_macro", issue = "70922")]
|
#[unstable(feature = "ready_macro", issue = "70922")]
|
||||||
pub use ready::ready;
|
pub use ready::ready;
|
||||||
#[unstable(feature = "poll_ready", issue = "none")]
|
#[unstable(feature = "poll_ready", issue = "89780")]
|
||||||
pub use ready::Ready;
|
pub use ready::Ready;
|
||||||
|
|
|
@ -121,7 +121,7 @@ impl<T> Poll<T> {
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "poll_ready", issue = "none")]
|
#[unstable(feature = "poll_ready", issue = "89780")]
|
||||||
pub fn ready(self) -> Ready<T> {
|
pub fn ready(self) -> Ready<T> {
|
||||||
Ready(self)
|
Ready(self)
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,10 +67,10 @@ pub macro ready($e:expr) {
|
||||||
/// Extracts the successful type of a [`Poll<T>`].
|
/// Extracts the successful type of a [`Poll<T>`].
|
||||||
///
|
///
|
||||||
/// See [`Poll::ready`] for details.
|
/// See [`Poll::ready`] for details.
|
||||||
#[unstable(feature = "poll_ready", issue = "none")]
|
#[unstable(feature = "poll_ready", issue = "89780")]
|
||||||
pub struct Ready<T>(pub(crate) Poll<T>);
|
pub struct Ready<T>(pub(crate) Poll<T>);
|
||||||
|
|
||||||
#[unstable(feature = "poll_ready", issue = "none")]
|
#[unstable(feature = "poll_ready", issue = "89780")]
|
||||||
impl<T> Try for Ready<T> {
|
impl<T> Try for Ready<T> {
|
||||||
type Output = T;
|
type Output = T;
|
||||||
type Residual = Ready<convert::Infallible>;
|
type Residual = Ready<convert::Infallible>;
|
||||||
|
@ -89,7 +89,7 @@ impl<T> Try for Ready<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "poll_ready", issue = "none")]
|
#[unstable(feature = "poll_ready", issue = "89780")]
|
||||||
impl<T> FromResidual for Ready<T> {
|
impl<T> FromResidual for Ready<T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from_residual(residual: Ready<convert::Infallible>) -> Self {
|
fn from_residual(residual: Ready<convert::Infallible>) -> Self {
|
||||||
|
@ -99,7 +99,7 @@ impl<T> FromResidual for Ready<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "poll_ready", issue = "none")]
|
#[unstable(feature = "poll_ready", issue = "89780")]
|
||||||
impl<T> FromResidual<Ready<convert::Infallible>> for Poll<T> {
|
impl<T> FromResidual<Ready<convert::Infallible>> for Poll<T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from_residual(residual: Ready<convert::Infallible>) -> Self {
|
fn from_residual(residual: Ready<convert::Infallible>) -> Self {
|
||||||
|
@ -109,7 +109,7 @@ impl<T> FromResidual<Ready<convert::Infallible>> for Poll<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "poll_ready", issue = "none")]
|
#[unstable(feature = "poll_ready", issue = "89780")]
|
||||||
impl<T> fmt::Debug for Ready<T> {
|
impl<T> fmt::Debug for Ready<T> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
f.debug_tuple("Ready").finish()
|
f.debug_tuple("Ready").finish()
|
||||||
|
|
Loading…
Add table
Reference in a new issue