Lines Matching refs:Ready
9 pub struct Ready<T>(Option<T>); struct
11 impl<T> Ready<T> { impl
19 impl<T> Unpin for Ready<T> {} implementation
21 impl<T> FusedFuture for Ready<T> { implementation
27 impl<T> Future for Ready<T> { implementation
32 Poll::Ready(self.0.take().expect("Ready polled after completion")) in poll()
48 pub fn ready<T>(t: T) -> Ready<T> { in ready()
49 assert_future::<T, _>(Ready(Some(t))) in ready()
64 pub fn ok<T, E>(t: T) -> Ready<Result<T, E>> { in ok()
65 Ready(Some(Ok(t))) in ok()
80 pub fn err<T, E>(err: E) -> Ready<Result<T, E>> { in err()
81 Ready(Some(Err(err))) in err()