|
3 | 3 | missing_debug_implementations,
|
4 | 4 | missing_docs,
|
5 | 5 | unreachable_pub,
|
6 |
| - broken_intra_doc_links |
| 6 | + rustdoc::broken_intra_doc_links |
7 | 7 | )]
|
8 | 8 | #![cfg_attr(test, deny(warnings))]
|
9 | 9 |
|
|
13 | 13 | //!
|
14 | 14 | //! [`Body`]: trait.Body.html
|
15 | 15 |
|
16 |
| -mod empty; |
17 |
| -mod full; |
18 |
| -mod limited; |
19 | 16 | mod next;
|
20 | 17 | mod size_hint;
|
21 | 18 |
|
22 |
| -pub mod combinators; |
23 |
| - |
24 |
| -pub use self::empty::Empty; |
25 |
| -pub use self::full::Full; |
26 |
| -pub use self::limited::{LengthLimitError, Limited}; |
27 | 19 | pub use self::next::{Data, Trailers};
|
28 | 20 | pub use self::size_hint::SizeHint;
|
29 | 21 |
|
30 |
| -use self::combinators::{BoxBody, MapData, MapErr, UnsyncBoxBody}; |
31 | 22 | use bytes::{Buf, Bytes};
|
32 | 23 | use http::HeaderMap;
|
33 | 24 | use std::convert::Infallible;
|
@@ -98,41 +89,6 @@ pub trait Body {
|
98 | 89 | {
|
99 | 90 | Trailers(self)
|
100 | 91 | }
|
101 |
| - |
102 |
| - /// Maps this body's data value to a different value. |
103 |
| - fn map_data<F, B>(self, f: F) -> MapData<Self, F> |
104 |
| - where |
105 |
| - Self: Sized, |
106 |
| - F: FnMut(Self::Data) -> B, |
107 |
| - B: Buf, |
108 |
| - { |
109 |
| - MapData::new(self, f) |
110 |
| - } |
111 |
| - |
112 |
| - /// Maps this body's error value to a different value. |
113 |
| - fn map_err<F, E>(self, f: F) -> MapErr<Self, F> |
114 |
| - where |
115 |
| - Self: Sized, |
116 |
| - F: FnMut(Self::Error) -> E, |
117 |
| - { |
118 |
| - MapErr::new(self, f) |
119 |
| - } |
120 |
| - |
121 |
| - /// Turn this body into a boxed trait object. |
122 |
| - fn boxed(self) -> BoxBody<Self::Data, Self::Error> |
123 |
| - where |
124 |
| - Self: Sized + Send + Sync + 'static, |
125 |
| - { |
126 |
| - BoxBody::new(self) |
127 |
| - } |
128 |
| - |
129 |
| - /// Turn this body into a boxed trait object that is !Sync. |
130 |
| - fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error> |
131 |
| - where |
132 |
| - Self: Sized + Send + 'static, |
133 |
| - { |
134 |
| - UnsyncBoxBody::new(self) |
135 |
| - } |
136 | 92 | }
|
137 | 93 |
|
138 | 94 | impl<T: Body + Unpin + ?Sized> Body for &mut T {
|
|
0 commit comments