/rust/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.31/src/lib.rs
Line | Count | Source (jump to first uncovered line) |
1 | | //! Combinators and utilities for working with `Future`s, `Stream`s, `Sink`s, |
2 | | //! and the `AsyncRead` and `AsyncWrite` traits. |
3 | | |
4 | | #![no_std] |
5 | | #![doc(test( |
6 | | no_crate_inject, |
7 | | attr( |
8 | | deny(warnings, rust_2018_idioms, single_use_lifetimes), |
9 | | allow(dead_code, unused_assignments, unused_variables) |
10 | | ) |
11 | | ))] |
12 | | #![warn(missing_docs, unsafe_op_in_unsafe_fn)] |
13 | | #![cfg_attr(docsrs, feature(doc_cfg))] |
14 | | |
15 | | #[cfg(all(feature = "bilock", not(feature = "unstable")))] |
16 | | compile_error!("The `bilock` feature requires the `unstable` feature as an explicit opt-in to unstable features"); |
17 | | |
18 | | #[cfg(feature = "alloc")] |
19 | | extern crate alloc; |
20 | | #[cfg(feature = "std")] |
21 | | extern crate std; |
22 | | |
23 | | // Macro re-exports |
24 | | pub use futures_core::ready; |
25 | | pub use pin_utils::pin_mut; |
26 | | |
27 | | #[cfg(feature = "async-await")] |
28 | | #[macro_use] |
29 | | mod async_await; |
30 | | #[cfg(feature = "async-await")] |
31 | | #[doc(hidden)] |
32 | | pub use self::async_await::*; |
33 | | |
34 | | // Not public API. |
35 | | #[cfg(feature = "async-await")] |
36 | | #[doc(hidden)] |
37 | | pub mod __private { |
38 | | pub use crate::*; |
39 | | pub use core::{ |
40 | | option::Option::{self, None, Some}, |
41 | | pin::Pin, |
42 | | result::Result::{Err, Ok}, |
43 | | }; |
44 | | |
45 | | pub mod async_await { |
46 | | pub use crate::async_await::*; |
47 | | } |
48 | | } |
49 | | |
50 | | #[cfg(feature = "sink")] |
51 | | macro_rules! delegate_sink { |
52 | | ($field:ident, $item:ty) => { |
53 | 0 | fn poll_ready( |
54 | 0 | self: core::pin::Pin<&mut Self>, |
55 | 0 | cx: &mut core::task::Context<'_>, |
56 | 0 | ) -> core::task::Poll<Result<(), Self::Error>> { |
57 | 0 | self.project().$field.poll_ready(cx) |
58 | 0 | } Unexecuted instantiation: <futures_util::future::future::FlattenStream<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::future::try_future::TryFlattenStream<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::future::try_future::FlattenSink<_, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::enumerate::Enumerate<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::filter::Filter<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::filter_map::FilterMap<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::flatten::Flatten<_, <_ as futures_core::stream::Stream>::Item> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::Flatten<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::fuse::Fuse<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::map::Map<_, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::peek::Peekable<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::skip::Skip<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::skip_while::SkipWhile<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::take::Take<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::take_while::TakeWhile<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::take_until::TakeUntil<_, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::then::Then<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::chunks::Chunks<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::ready_chunks::ReadyChunks<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::scan::Scan<_, _, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::buffer_unordered::BufferUnordered<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::buffered::Buffered<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::flatten_unordered::FlattenUnorderedWithFlowController<_, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::and_then::AndThen<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::into_stream::IntoStream<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::or_else::OrElse<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::try_filter::TryFilter<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::try_filter_map::TryFilterMap<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten::TryFlatten<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::NestedTryStreamIntoEitherTryStream<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::try_chunks::TryChunks<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::try_ready_chunks::TryReadyChunks<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::try_skip_while::TrySkipWhile<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::try_take_while::TryTakeWhile<_, _, _> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::try_buffer_unordered::TryBufferUnordered<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::stream::try_stream::try_buffered::TryBuffered<_> as futures_sink::Sink<_>>::poll_ready Unexecuted instantiation: <futures_util::sink::err_into::SinkErrInto<_, _, _> as futures_sink::Sink<_>>::poll_ready |
59 | | |
60 | 0 | fn start_send(self: core::pin::Pin<&mut Self>, item: $item) -> Result<(), Self::Error> { |
61 | 0 | self.project().$field.start_send(item) |
62 | 0 | } Unexecuted instantiation: <futures_util::future::future::FlattenStream<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::future::try_future::TryFlattenStream<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::future::try_future::FlattenSink<_, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::enumerate::Enumerate<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::filter::Filter<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::filter_map::FilterMap<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::flatten::Flatten<_, <_ as futures_core::stream::Stream>::Item> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::Flatten<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::fuse::Fuse<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::map::Map<_, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::peek::Peekable<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::skip::Skip<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::skip_while::SkipWhile<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::take::Take<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::take_while::TakeWhile<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::take_until::TakeUntil<_, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::then::Then<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::chunks::Chunks<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::ready_chunks::ReadyChunks<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::scan::Scan<_, _, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::buffer_unordered::BufferUnordered<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::buffered::Buffered<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::flatten_unordered::FlattenUnorderedWithFlowController<_, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::and_then::AndThen<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::into_stream::IntoStream<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::or_else::OrElse<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::try_filter::TryFilter<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::try_filter_map::TryFilterMap<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten::TryFlatten<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::NestedTryStreamIntoEitherTryStream<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::try_chunks::TryChunks<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::try_ready_chunks::TryReadyChunks<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::try_skip_while::TrySkipWhile<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::try_take_while::TryTakeWhile<_, _, _> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::try_buffer_unordered::TryBufferUnordered<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::stream::try_stream::try_buffered::TryBuffered<_> as futures_sink::Sink<_>>::start_send Unexecuted instantiation: <futures_util::sink::err_into::SinkErrInto<_, _, _> as futures_sink::Sink<_>>::start_send |
63 | | |
64 | 0 | fn poll_flush( |
65 | 0 | self: core::pin::Pin<&mut Self>, |
66 | 0 | cx: &mut core::task::Context<'_>, |
67 | 0 | ) -> core::task::Poll<Result<(), Self::Error>> { |
68 | 0 | self.project().$field.poll_flush(cx) |
69 | 0 | } Unexecuted instantiation: <futures_util::future::future::FlattenStream<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::future::try_future::TryFlattenStream<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::future::try_future::FlattenSink<_, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::enumerate::Enumerate<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::filter::Filter<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::filter_map::FilterMap<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::flatten::Flatten<_, <_ as futures_core::stream::Stream>::Item> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::Flatten<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::fuse::Fuse<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::map::Map<_, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::peek::Peekable<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::skip::Skip<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::skip_while::SkipWhile<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::take::Take<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::take_while::TakeWhile<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::take_until::TakeUntil<_, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::then::Then<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::chunks::Chunks<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::ready_chunks::ReadyChunks<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::scan::Scan<_, _, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::buffer_unordered::BufferUnordered<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::buffered::Buffered<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::flatten_unordered::FlattenUnorderedWithFlowController<_, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::and_then::AndThen<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::into_stream::IntoStream<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::or_else::OrElse<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::try_filter::TryFilter<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::try_filter_map::TryFilterMap<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten::TryFlatten<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::NestedTryStreamIntoEitherTryStream<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::try_chunks::TryChunks<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::try_ready_chunks::TryReadyChunks<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::try_skip_while::TrySkipWhile<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::try_take_while::TryTakeWhile<_, _, _> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::try_buffer_unordered::TryBufferUnordered<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::stream::try_stream::try_buffered::TryBuffered<_> as futures_sink::Sink<_>>::poll_flush Unexecuted instantiation: <futures_util::sink::err_into::SinkErrInto<_, _, _> as futures_sink::Sink<_>>::poll_flush |
70 | | |
71 | 0 | fn poll_close( |
72 | 0 | self: core::pin::Pin<&mut Self>, |
73 | 0 | cx: &mut core::task::Context<'_>, |
74 | 0 | ) -> core::task::Poll<Result<(), Self::Error>> { |
75 | 0 | self.project().$field.poll_close(cx) |
76 | 0 | } Unexecuted instantiation: <futures_util::future::future::FlattenStream<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::future::try_future::TryFlattenStream<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::future::try_future::FlattenSink<_, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::enumerate::Enumerate<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::filter::Filter<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::filter_map::FilterMap<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::flatten::Flatten<_, <_ as futures_core::stream::Stream>::Item> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::Flatten<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::fuse::Fuse<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::map::Map<_, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::peek::Peekable<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::skip::Skip<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::skip_while::SkipWhile<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::take::Take<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::take_while::TakeWhile<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::take_until::TakeUntil<_, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::then::Then<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::chunks::Chunks<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::ready_chunks::ReadyChunks<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::scan::Scan<_, _, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::buffer_unordered::BufferUnordered<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::buffered::Buffered<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::flatten_unordered::FlattenUnorderedWithFlowController<_, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::and_then::AndThen<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::into_stream::IntoStream<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::or_else::OrElse<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::try_filter::TryFilter<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::try_filter_map::TryFilterMap<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten::TryFlatten<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::NestedTryStreamIntoEitherTryStream<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::try_chunks::TryChunks<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::try_ready_chunks::TryReadyChunks<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::try_skip_while::TrySkipWhile<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::try_take_while::TryTakeWhile<_, _, _> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::try_buffer_unordered::TryBufferUnordered<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::stream::try_stream::try_buffered::TryBuffered<_> as futures_sink::Sink<_>>::poll_close Unexecuted instantiation: <futures_util::sink::err_into::SinkErrInto<_, _, _> as futures_sink::Sink<_>>::poll_close |
77 | | }; |
78 | | } |
79 | | |
80 | | macro_rules! delegate_future { |
81 | | ($field:ident) => { |
82 | 0 | fn poll( |
83 | 0 | self: core::pin::Pin<&mut Self>, |
84 | 0 | cx: &mut core::task::Context<'_>, |
85 | 0 | ) -> core::task::Poll<Self::Output> { |
86 | 0 | self.project().$field.poll(cx) |
87 | 0 | } Unexecuted instantiation: <futures_util::future::future::Flatten<_> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::future::Map<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::future::MapInto<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::future::Then<_, _, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::future::Inspect<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::future::NeverError<_> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::future::UnitError<_> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::TryFlatten<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::TryFlattenErr<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::AndThen<_, _, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::OrElse<_, _, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::ErrInto<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::OkInto<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::InspectOk<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::InspectErr<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::MapOk<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::MapErr<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::MapOkOrElse<_, _, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::future::try_future::UnwrapOrElse<_, _> as core::future::future::Future>::poll Unexecuted instantiation: <futures_util::stream::stream::Forward<_, _> as core::future::future::Future>::poll |
88 | | }; |
89 | | } |
90 | | |
91 | | macro_rules! delegate_stream { |
92 | | ($field:ident) => { |
93 | 0 | fn poll_next( |
94 | 0 | self: core::pin::Pin<&mut Self>, |
95 | 0 | cx: &mut core::task::Context<'_>, |
96 | 0 | ) -> core::task::Poll<Option<Self::Item>> { |
97 | 0 | self.project().$field.poll_next(cx) |
98 | 0 | } Unexecuted instantiation: <futures_util::future::future::FlattenStream<_> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::future::future::IntoStream<_> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::future::try_future::TryFlattenStream<_> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::future::try_future::FlattenSink<_, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::stream::stream::Flatten<_> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::sink::err_into::SinkErrInto<_, _, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::sink::map_err::SinkMapErr<_, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::sink::with::With<_, _, _, _, _> as futures_core::stream::Stream>::poll_next Unexecuted instantiation: <futures_util::sink::with_flat_map::WithFlatMap<_, _, _, _, _> as futures_core::stream::Stream>::poll_next |
99 | 0 | fn size_hint(&self) -> (usize, Option<usize>) { |
100 | 0 | self.$field.size_hint() |
101 | 0 | } Unexecuted instantiation: <futures_util::future::future::FlattenStream<_> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::future::future::IntoStream<_> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::future::try_future::TryFlattenStream<_> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::future::try_future::FlattenSink<_, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::stream::stream::Flatten<_> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::sink::err_into::SinkErrInto<_, _, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::sink::map_err::SinkMapErr<_, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::sink::with::With<_, _, _, _, _> as futures_core::stream::Stream>::size_hint Unexecuted instantiation: <futures_util::sink::with_flat_map::WithFlatMap<_, _, _, _, _> as futures_core::stream::Stream>::size_hint |
102 | | }; |
103 | | } |
104 | | |
105 | | #[cfg(feature = "io")] |
106 | | #[cfg(feature = "std")] |
107 | | macro_rules! delegate_async_write { |
108 | | ($field:ident) => { |
109 | 0 | fn poll_write( |
110 | 0 | self: core::pin::Pin<&mut Self>, |
111 | 0 | cx: &mut core::task::Context<'_>, |
112 | 0 | buf: &[u8], |
113 | 0 | ) -> core::task::Poll<std::io::Result<usize>> { |
114 | 0 | self.project().$field.poll_write(cx, buf) |
115 | 0 | } |
116 | 0 | fn poll_write_vectored( |
117 | 0 | self: core::pin::Pin<&mut Self>, |
118 | 0 | cx: &mut core::task::Context<'_>, |
119 | 0 | bufs: &[std::io::IoSlice<'_>], |
120 | 0 | ) -> core::task::Poll<std::io::Result<usize>> { |
121 | 0 | self.project().$field.poll_write_vectored(cx, bufs) |
122 | 0 | } |
123 | 0 | fn poll_flush( |
124 | 0 | self: core::pin::Pin<&mut Self>, |
125 | 0 | cx: &mut core::task::Context<'_>, |
126 | 0 | ) -> core::task::Poll<std::io::Result<()>> { |
127 | 0 | self.project().$field.poll_flush(cx) |
128 | 0 | } |
129 | 0 | fn poll_close( |
130 | 0 | self: core::pin::Pin<&mut Self>, |
131 | 0 | cx: &mut core::task::Context<'_>, |
132 | 0 | ) -> core::task::Poll<std::io::Result<()>> { |
133 | 0 | self.project().$field.poll_close(cx) |
134 | 0 | } |
135 | | }; |
136 | | } |
137 | | |
138 | | #[cfg(feature = "io")] |
139 | | #[cfg(feature = "std")] |
140 | | macro_rules! delegate_async_read { |
141 | | ($field:ident) => { |
142 | 0 | fn poll_read( |
143 | 0 | self: core::pin::Pin<&mut Self>, |
144 | 0 | cx: &mut core::task::Context<'_>, |
145 | 0 | buf: &mut [u8], |
146 | 0 | ) -> core::task::Poll<std::io::Result<usize>> { |
147 | 0 | self.project().$field.poll_read(cx, buf) |
148 | 0 | } |
149 | | |
150 | 0 | fn poll_read_vectored( |
151 | 0 | self: core::pin::Pin<&mut Self>, |
152 | 0 | cx: &mut core::task::Context<'_>, |
153 | 0 | bufs: &mut [std::io::IoSliceMut<'_>], |
154 | 0 | ) -> core::task::Poll<std::io::Result<usize>> { |
155 | 0 | self.project().$field.poll_read_vectored(cx, bufs) |
156 | 0 | } |
157 | | }; |
158 | | } |
159 | | |
160 | | #[cfg(feature = "io")] |
161 | | #[cfg(feature = "std")] |
162 | | macro_rules! delegate_async_buf_read { |
163 | | ($field:ident) => { |
164 | 0 | fn poll_fill_buf( |
165 | 0 | self: core::pin::Pin<&mut Self>, |
166 | 0 | cx: &mut core::task::Context<'_>, |
167 | 0 | ) -> core::task::Poll<std::io::Result<&[u8]>> { |
168 | 0 | self.project().$field.poll_fill_buf(cx) |
169 | 0 | } |
170 | | |
171 | 0 | fn consume(self: core::pin::Pin<&mut Self>, amt: usize) { |
172 | 0 | self.project().$field.consume(amt) |
173 | 0 | } |
174 | | }; |
175 | | } |
176 | | |
177 | | macro_rules! delegate_access_inner { |
178 | | ($field:ident, $inner:ty, ($($ind:tt)*)) => { |
179 | | /// Acquires a reference to the underlying sink or stream that this combinator is |
180 | | /// pulling from. |
181 | 0 | pub fn get_ref(&self) -> &$inner { |
182 | 0 | (&self.$field) $($ind get_ref())* |
183 | 0 | } Unexecuted instantiation: <futures_util::stream::stream::enumerate::Enumerate<_>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::filter::Filter<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::filter_map::FilterMap<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::flatten::Flatten<_, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::Flatten<_>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::fuse::Fuse<_>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::map::Map<_, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::peek::Peekable<_>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::skip::Skip<_>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::skip_while::SkipWhile<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::take::Take<_>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::take_while::TakeWhile<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::take_until::TakeUntil<_, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::then::Then<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::chunks::Chunks<_>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::ready_chunks::ReadyChunks<_>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::scan::Scan<_, _, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::buffer_unordered::BufferUnordered<_>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::buffered::Buffered<_>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::flatten_unordered::FlattenUnorderedWithFlowController<_, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::stream::catch_unwind::CatchUnwind<_>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::and_then::AndThen<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::into_stream::IntoStream<_>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::or_else::OrElse<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::try_filter::TryFilter<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::try_filter_map::TryFilterMap<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten::TryFlatten<_>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::NestedTryStreamIntoEitherTryStream<_>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::try_chunks::TryChunks<_>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::try_ready_chunks::TryReadyChunks<_>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::try_skip_while::TrySkipWhile<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::try_take_while::TryTakeWhile<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::try_buffer_unordered::TryBufferUnordered<_>>::get_ref Unexecuted instantiation: <futures_util::stream::try_stream::try_buffered::TryBuffered<_>>::get_ref Unexecuted instantiation: <futures_util::sink::err_into::SinkErrInto<_, _, _>>::get_ref Unexecuted instantiation: <futures_util::sink::map_err::SinkMapErr<_, _>>::get_ref Unexecuted instantiation: <futures_util::sink::with::With<_, _, _, _, _>>::get_ref Unexecuted instantiation: <futures_util::sink::with_flat_map::WithFlatMap<_, _, _, _, _>>::get_ref Unexecuted instantiation: <futures_util::sink::buffer::Buffer<_, _>>::get_ref Unexecuted instantiation: <futures_util::io::buf_reader::BufReader<_>>::get_ref Unexecuted instantiation: <futures_util::io::buf_writer::BufWriter<_>>::get_ref Unexecuted instantiation: <futures_util::io::take::Take<_>>::get_ref |
184 | | |
185 | | /// Acquires a mutable reference to the underlying sink or stream that this |
186 | | /// combinator is pulling from. |
187 | | /// |
188 | | /// Note that care must be taken to avoid tampering with the state of the |
189 | | /// sink or stream which may otherwise confuse this combinator. |
190 | 0 | pub fn get_mut(&mut self) -> &mut $inner { |
191 | 0 | (&mut self.$field) $($ind get_mut())* |
192 | 0 | } Unexecuted instantiation: <futures_util::stream::stream::enumerate::Enumerate<_>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::filter::Filter<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::filter_map::FilterMap<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::flatten::Flatten<_, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::Flatten<_>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::fuse::Fuse<_>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::map::Map<_, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::peek::Peekable<_>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::skip::Skip<_>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::skip_while::SkipWhile<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::take::Take<_>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::take_while::TakeWhile<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::take_until::TakeUntil<_, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::then::Then<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::chunks::Chunks<_>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::ready_chunks::ReadyChunks<_>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::scan::Scan<_, _, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::buffer_unordered::BufferUnordered<_>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::buffered::Buffered<_>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::flatten_unordered::FlattenUnorderedWithFlowController<_, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::stream::catch_unwind::CatchUnwind<_>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::and_then::AndThen<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::into_stream::IntoStream<_>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::or_else::OrElse<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_filter::TryFilter<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_filter_map::TryFilterMap<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten::TryFlatten<_>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::NestedTryStreamIntoEitherTryStream<_>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_chunks::TryChunks<_>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_ready_chunks::TryReadyChunks<_>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_skip_while::TrySkipWhile<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_take_while::TryTakeWhile<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_buffer_unordered::TryBufferUnordered<_>>::get_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_buffered::TryBuffered<_>>::get_mut Unexecuted instantiation: <futures_util::sink::err_into::SinkErrInto<_, _, _>>::get_mut Unexecuted instantiation: <futures_util::sink::map_err::SinkMapErr<_, _>>::get_mut Unexecuted instantiation: <futures_util::sink::with::With<_, _, _, _, _>>::get_mut Unexecuted instantiation: <futures_util::sink::with_flat_map::WithFlatMap<_, _, _, _, _>>::get_mut Unexecuted instantiation: <futures_util::sink::buffer::Buffer<_, _>>::get_mut Unexecuted instantiation: <futures_util::io::buf_reader::BufReader<_>>::get_mut Unexecuted instantiation: <futures_util::io::buf_writer::BufWriter<_>>::get_mut Unexecuted instantiation: <futures_util::io::take::Take<_>>::get_mut |
193 | | |
194 | | /// Acquires a pinned mutable reference to the underlying sink or stream that this |
195 | | /// combinator is pulling from. |
196 | | /// |
197 | | /// Note that care must be taken to avoid tampering with the state of the |
198 | | /// sink or stream which may otherwise confuse this combinator. |
199 | 0 | pub fn get_pin_mut(self: core::pin::Pin<&mut Self>) -> core::pin::Pin<&mut $inner> { |
200 | 0 | self.project().$field $($ind get_pin_mut())* |
201 | 0 | } Unexecuted instantiation: <futures_util::stream::stream::enumerate::Enumerate<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::filter::Filter<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::filter_map::FilterMap<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::flatten::Flatten<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::Flatten<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::fuse::Fuse<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::map::Map<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::peek::Peekable<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::skip::Skip<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::skip_while::SkipWhile<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::take::Take<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::take_while::TakeWhile<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::take_until::TakeUntil<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::then::Then<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::chunks::Chunks<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::ready_chunks::ReadyChunks<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::scan::Scan<_, _, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::buffer_unordered::BufferUnordered<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::buffered::Buffered<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::flatten_unordered::FlattenUnorderedWithFlowController<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::stream::catch_unwind::CatchUnwind<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::and_then::AndThen<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::into_stream::IntoStream<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::or_else::OrElse<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_filter::TryFilter<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_filter_map::TryFilterMap<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten::TryFlatten<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::NestedTryStreamIntoEitherTryStream<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_chunks::TryChunks<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_ready_chunks::TryReadyChunks<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_skip_while::TrySkipWhile<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_take_while::TryTakeWhile<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_buffer_unordered::TryBufferUnordered<_>>::get_pin_mut Unexecuted instantiation: <futures_util::stream::try_stream::try_buffered::TryBuffered<_>>::get_pin_mut Unexecuted instantiation: <futures_util::sink::err_into::SinkErrInto<_, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::sink::map_err::SinkMapErr<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::sink::with::With<_, _, _, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::sink::with_flat_map::WithFlatMap<_, _, _, _, _>>::get_pin_mut Unexecuted instantiation: <futures_util::sink::buffer::Buffer<_, _>>::get_pin_mut Unexecuted instantiation: <futures_util::io::buf_reader::BufReader<_>>::get_pin_mut Unexecuted instantiation: <futures_util::io::buf_writer::BufWriter<_>>::get_pin_mut Unexecuted instantiation: <futures_util::io::take::Take<_>>::get_pin_mut |
202 | | |
203 | | /// Consumes this combinator, returning the underlying sink or stream. |
204 | | /// |
205 | | /// Note that this may discard intermediate state of this combinator, so |
206 | | /// care should be taken to avoid losing resources when this is called. |
207 | 0 | pub fn into_inner(self) -> $inner { |
208 | 0 | self.$field $($ind into_inner())* |
209 | 0 | } Unexecuted instantiation: <futures_util::stream::stream::enumerate::Enumerate<_>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::filter::Filter<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::filter_map::FilterMap<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::flatten::Flatten<_, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::Flatten<_>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::fuse::Fuse<_>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::map::Map<_, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::peek::Peekable<_>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::skip::Skip<_>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::skip_while::SkipWhile<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::take::Take<_>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::take_while::TakeWhile<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::take_until::TakeUntil<_, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::then::Then<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::chunks::Chunks<_>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::ready_chunks::ReadyChunks<_>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::scan::Scan<_, _, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::buffer_unordered::BufferUnordered<_>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::buffered::Buffered<_>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::flatten_unordered::FlattenUnorderedWithFlowController<_, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::stream::catch_unwind::CatchUnwind<_>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::and_then::AndThen<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::into_stream::IntoStream<_>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::or_else::OrElse<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::try_filter::TryFilter<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::try_filter_map::TryFilterMap<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten::TryFlatten<_>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::NestedTryStreamIntoEitherTryStream<_>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::try_chunks::TryChunks<_>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::try_ready_chunks::TryReadyChunks<_>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::try_skip_while::TrySkipWhile<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::try_take_while::TryTakeWhile<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::try_buffer_unordered::TryBufferUnordered<_>>::into_inner Unexecuted instantiation: <futures_util::stream::try_stream::try_buffered::TryBuffered<_>>::into_inner Unexecuted instantiation: <futures_util::sink::err_into::SinkErrInto<_, _, _>>::into_inner Unexecuted instantiation: <futures_util::sink::map_err::SinkMapErr<_, _>>::into_inner Unexecuted instantiation: <futures_util::sink::with::With<_, _, _, _, _>>::into_inner Unexecuted instantiation: <futures_util::sink::with_flat_map::WithFlatMap<_, _, _, _, _>>::into_inner Unexecuted instantiation: <futures_util::sink::buffer::Buffer<_, _>>::into_inner Unexecuted instantiation: <futures_util::io::buf_reader::BufReader<_>>::into_inner Unexecuted instantiation: <futures_util::io::buf_writer::BufWriter<_>>::into_inner Unexecuted instantiation: <futures_util::io::take::Take<_>>::into_inner |
210 | | } |
211 | | } |
212 | | |
213 | | macro_rules! delegate_all { |
214 | | (@trait Future $name:ident < $($arg:ident),* > ($t:ty) $(where $($bound:tt)*)*) => { |
215 | | impl<$($arg),*> futures_core::future::Future for $name<$($arg),*> where $t: futures_core::future::Future $(, $($bound)*)* { |
216 | | type Output = <$t as futures_core::future::Future>::Output; |
217 | | |
218 | | delegate_future!(inner); |
219 | | } |
220 | | }; |
221 | | (@trait FusedFuture $name:ident < $($arg:ident),* > ($t:ty) $(where $($bound:tt)*)*) => { |
222 | | impl<$($arg),*> futures_core::future::FusedFuture for $name<$($arg),*> where $t: futures_core::future::FusedFuture $(, $($bound)*)* { |
223 | 0 | fn is_terminated(&self) -> bool { |
224 | 0 | self.inner.is_terminated() |
225 | 0 | } Unexecuted instantiation: <futures_util::future::future::Flatten<_> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::future::Map<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::future::MapInto<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::future::Then<_, _, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::future::Inspect<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::future::NeverError<_> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::future::UnitError<_> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::TryFlatten<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::TryFlattenErr<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::AndThen<_, _, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::OrElse<_, _, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::ErrInto<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::OkInto<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::InspectOk<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::InspectErr<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::MapOk<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::MapErr<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::MapOkOrElse<_, _, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::UnwrapOrElse<_, _> as futures_core::future::FusedFuture>::is_terminated Unexecuted instantiation: <futures_util::stream::stream::Forward<_, _> as futures_core::future::FusedFuture>::is_terminated |
226 | | } |
227 | | }; |
228 | | (@trait Stream $name:ident < $($arg:ident),* > ($t:ty) $(where $($bound:tt)*)*) => { |
229 | | impl<$($arg),*> futures_core::stream::Stream for $name<$($arg),*> where $t: futures_core::stream::Stream $(, $($bound)*)* { |
230 | | type Item = <$t as futures_core::stream::Stream>::Item; |
231 | | |
232 | | delegate_stream!(inner); |
233 | | } |
234 | | }; |
235 | | (@trait FusedStream $name:ident < $($arg:ident),* > ($t:ty) $(where $($bound:tt)*)*) => { |
236 | | impl<$($arg),*> futures_core::stream::FusedStream for $name<$($arg),*> where $t: futures_core::stream::FusedStream $(, $($bound)*)* { |
237 | 0 | fn is_terminated(&self) -> bool { |
238 | 0 | self.inner.is_terminated() |
239 | 0 | } Unexecuted instantiation: <futures_util::future::future::FlattenStream<_> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::future::future::IntoStream<_> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::TryFlattenStream<_> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::future::try_future::FlattenSink<_, _> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::stream::stream::Flatten<_> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _> as futures_core::stream::FusedStream>::is_terminated Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_> as futures_core::stream::FusedStream>::is_terminated |
240 | | } |
241 | | }; |
242 | | (@trait Sink $name:ident < $($arg:ident),* > ($t:ty) $(where $($bound:tt)*)*) => { |
243 | | #[cfg(feature = "sink")] |
244 | | impl<_Item, $($arg),*> futures_sink::Sink<_Item> for $name<$($arg),*> where $t: futures_sink::Sink<_Item> $(, $($bound)*)* { |
245 | | type Error = <$t as futures_sink::Sink<_Item>>::Error; |
246 | | |
247 | | delegate_sink!(inner, _Item); |
248 | | } |
249 | | }; |
250 | | (@trait Debug $name:ident < $($arg:ident),* > ($t:ty) $(where $($bound:tt)*)*) => { |
251 | | impl<$($arg),*> core::fmt::Debug for $name<$($arg),*> where $t: core::fmt::Debug $(, $($bound)*)* { |
252 | 0 | fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { |
253 | 0 | core::fmt::Debug::fmt(&self.inner, f) |
254 | 0 | } Unexecuted instantiation: <futures_util::future::future::Flatten<_> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::future::FlattenStream<_> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::future::Map<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::future::IntoStream<_> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::future::MapInto<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::future::Then<_, _, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::future::Inspect<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::future::NeverError<_> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::future::UnitError<_> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::TryFlatten<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::TryFlattenErr<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::TryFlattenStream<_> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::FlattenSink<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::AndThen<_, _, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::OrElse<_, _, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::ErrInto<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::OkInto<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::InspectOk<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::InspectErr<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::MapOk<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::MapErr<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::MapOkOrElse<_, _, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::future::try_future::UnwrapOrElse<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::stream::stream::Flatten<_> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::stream::stream::Forward<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _> as core::fmt::Debug>::fmt Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_> as core::fmt::Debug>::fmt |
255 | | } |
256 | | }; |
257 | | (@trait AccessInner[$inner:ty, ($($ind:tt)*)] $name:ident < $($arg:ident),* > ($t:ty) $(where $($bound:tt)*)*) => { |
258 | | impl<$($arg),*> $name<$($arg),*> $(where $($bound)*)* { |
259 | | delegate_access_inner!(inner, $inner, ($($ind)*)); |
260 | | } |
261 | | }; |
262 | | (@trait New[|$($param:ident: $paramt:ty),*| $cons:expr] $name:ident < $($arg:ident),* > ($t:ty) $(where $($bound:tt)*)*) => { |
263 | | impl<$($arg),*> $name<$($arg),*> $(where $($bound)*)* { |
264 | 0 | pub(crate) fn new($($param: $paramt),*) -> Self { |
265 | 0 | Self { inner: $cons } |
266 | 0 | } Unexecuted instantiation: <futures_util::future::future::Flatten<_>>::new Unexecuted instantiation: <futures_util::future::future::FlattenStream<_>>::new Unexecuted instantiation: <futures_util::future::future::Map<_, _>>::new Unexecuted instantiation: <futures_util::future::future::IntoStream<_>>::new Unexecuted instantiation: <futures_util::future::future::MapInto<_, _>>::new Unexecuted instantiation: <futures_util::future::future::Then<_, _, _>>::new Unexecuted instantiation: <futures_util::future::future::Inspect<_, _>>::new Unexecuted instantiation: <futures_util::future::future::NeverError<_>>::new Unexecuted instantiation: <futures_util::future::future::UnitError<_>>::new Unexecuted instantiation: <futures_util::future::try_future::TryFlatten<_, _>>::new Unexecuted instantiation: <futures_util::future::try_future::TryFlattenErr<_, _>>::new Unexecuted instantiation: <futures_util::future::try_future::TryFlattenStream<_>>::new Unexecuted instantiation: <futures_util::future::try_future::FlattenSink<_, _>>::new Unexecuted instantiation: <futures_util::future::try_future::AndThen<_, _, _>>::new Unexecuted instantiation: <futures_util::future::try_future::OrElse<_, _, _>>::new Unexecuted instantiation: <futures_util::future::try_future::ErrInto<_, _>>::new Unexecuted instantiation: <futures_util::future::try_future::OkInto<_, _>>::new Unexecuted instantiation: <futures_util::future::try_future::InspectOk<_, _>>::new Unexecuted instantiation: <futures_util::future::try_future::InspectErr<_, _>>::new Unexecuted instantiation: <futures_util::future::try_future::MapOk<_, _>>::new Unexecuted instantiation: <futures_util::future::try_future::MapErr<_, _>>::new Unexecuted instantiation: <futures_util::future::try_future::MapOkOrElse<_, _, _>>::new Unexecuted instantiation: <futures_util::future::try_future::UnwrapOrElse<_, _>>::new Unexecuted instantiation: <futures_util::stream::stream::Flatten<_>>::new Unexecuted instantiation: <futures_util::stream::stream::Forward<_, _>>::new Unexecuted instantiation: <futures_util::stream::stream::Inspect<_, _>>::new Unexecuted instantiation: <futures_util::stream::stream::FlatMap<_, _, _>>::new Unexecuted instantiation: <futures_util::stream::stream::FlatMapUnordered<_, _, _>>::new Unexecuted instantiation: <futures_util::stream::try_stream::ErrInto<_, _>>::new Unexecuted instantiation: <futures_util::stream::try_stream::InspectOk<_, _>>::new Unexecuted instantiation: <futures_util::stream::try_stream::InspectErr<_, _>>::new Unexecuted instantiation: <futures_util::stream::try_stream::MapOk<_, _>>::new Unexecuted instantiation: <futures_util::stream::try_stream::MapErr<_, _>>::new Unexecuted instantiation: <futures_util::stream::try_stream::try_flatten_unordered::TryFlattenUnordered<_>>::new::<_> |
267 | | } |
268 | | }; |
269 | | ($(#[$attr:meta])* $name:ident<$($arg:ident),*>($t:ty) : $ftrait:ident $([$($targs:tt)*])* $({$($item:tt)*})* $(where $($bound:tt)*)*) => { |
270 | | pin_project_lite::pin_project! { |
271 | | #[must_use = "futures/streams/sinks do nothing unless you `.await` or poll them"] |
272 | | $(#[$attr])* |
273 | | pub struct $name< $($arg),* > $(where $($bound)*)* { #[pin] inner: $t } |
274 | | } |
275 | | |
276 | | impl<$($arg),*> $name< $($arg),* > $(where $($bound)*)* { |
277 | | $($($item)*)* |
278 | | } |
279 | | |
280 | | delegate_all!(@trait $ftrait $([$($targs)*])* $name<$($arg),*>($t) $(where $($bound)*)*); |
281 | | }; |
282 | | ($(#[$attr:meta])* $name:ident<$($arg:ident),*>($t:ty) : $ftrait:ident $([$($ftargs:tt)*])* + $strait:ident $([$($stargs:tt)*])* $(+ $trait:ident $([$($targs:tt)*])*)* $({$($item:tt)*})* $(where $($bound:tt)*)*) => { |
283 | | delegate_all!($(#[$attr])* $name<$($arg),*>($t) : $strait $([$($stargs)*])* $(+ $trait $([$($targs)*])*)* $({$($item)*})* $(where $($bound)*)*); |
284 | | |
285 | | delegate_all!(@trait $ftrait $([$($ftargs)*])* $name<$($arg),*>($t) $(where $($bound)*)*); |
286 | | }; |
287 | | } |
288 | | |
289 | | pub mod future; |
290 | | #[doc(no_inline)] |
291 | | pub use crate::future::{Future, FutureExt, TryFuture, TryFutureExt}; |
292 | | |
293 | | pub mod stream; |
294 | | #[doc(no_inline)] |
295 | | pub use crate::stream::{Stream, StreamExt, TryStream, TryStreamExt}; |
296 | | |
297 | | #[cfg(feature = "sink")] |
298 | | #[cfg_attr(docsrs, doc(cfg(feature = "sink")))] |
299 | | pub mod sink; |
300 | | #[cfg(feature = "sink")] |
301 | | #[doc(no_inline)] |
302 | | pub use crate::sink::{Sink, SinkExt}; |
303 | | |
304 | | pub mod task; |
305 | | |
306 | | pub mod never; |
307 | | |
308 | | #[cfg(feature = "compat")] |
309 | | #[cfg_attr(docsrs, doc(cfg(feature = "compat")))] |
310 | | pub mod compat; |
311 | | |
312 | | #[cfg(feature = "io")] |
313 | | #[cfg_attr(docsrs, doc(cfg(feature = "io")))] |
314 | | #[cfg(feature = "std")] |
315 | | pub mod io; |
316 | | #[cfg(feature = "io")] |
317 | | #[cfg(feature = "std")] |
318 | | #[doc(no_inline)] |
319 | | pub use crate::io::{ |
320 | | AsyncBufRead, AsyncBufReadExt, AsyncRead, AsyncReadExt, AsyncSeek, AsyncSeekExt, AsyncWrite, |
321 | | AsyncWriteExt, |
322 | | }; |
323 | | |
324 | | #[cfg(feature = "alloc")] |
325 | | pub mod lock; |
326 | | |
327 | | #[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))] |
328 | | #[cfg(feature = "alloc")] |
329 | | mod abortable; |
330 | | |
331 | | mod fns; |
332 | | mod unfold_state; |