Home
last modified time | relevance | path

Searched refs:Unpin (Results 1 – 25 of 326) sorted by relevance

12345678910>>...14

/external/rust/crates/tokio/tests/
Dasync_send_sync.rs50 fn require_unpin<T: Unpin>(_t: &T) {} in require_unpin()
71 impl<T: ?Sized + Unpin> AmbiguousIfUnpin<Invalid> for T {}
81 (Send & $(!)?Sync & $(!)?Unpin, $value:expr) => {
84 (!Send & $(!)?Sync & $(!)?Unpin, $value:expr) => {
89 ($(!)?Send & Sync & $(!)?Unpin, $value:expr) => {
92 ($(!)?Send & !Sync & $(!)?Unpin, $value:expr) => {
97 ($(!)?Send & $(!)?Sync & Unpin, $value:expr) => {
100 ($(!)?Send & $(!)?Sync & !Unpin, $value:expr) => {
157 assert_value!(tokio::fs::DirBuilder: Send & Sync & Unpin);
158 assert_value!(tokio::fs::DirEntry: Send & Sync & Unpin);
[all …]
/external/rust/crates/futures/tests/
Dauto_traits.rs79 assert_impl!(mpsc::Receiver<PhantomPinned>: Unpin);
83 assert_impl!(mpsc::SendError: Unpin);
89 assert_impl!(mpsc::Sender<PhantomPinned>: Unpin);
93 assert_impl!(mpsc::TryRecvError: Unpin);
99 assert_impl!(mpsc::TrySendError<()>: Unpin);
100 assert_not_impl!(mpsc::TrySendError<PhantomPinned>: Unpin);
106 assert_impl!(mpsc::UnboundedReceiver<PhantomPinned>: Unpin);
112 assert_impl!(mpsc::UnboundedReceiver<PhantomPinned>: Unpin);
116 assert_impl!(oneshot::Canceled: Unpin);
122 assert_impl!(oneshot::Cancellation<PhantomPinned>: Unpin);
[all …]
/external/crosvm/cros_async/src/
Dlib.rs184 pub async fn select2<F1: Future + Unpin, F2: Future + Unpin>( in select2() argument
214 pub async fn select3<F1: Future + Unpin, F2: Future + Unpin, F3: Future + Unpin>( in select3() argument
247 F1: Future + Unpin, in select4() argument
248 F2: Future + Unpin, in select4() argument
249 F3: Future + Unpin, in select4() argument
250 F4: Future + Unpin, in select4() argument
293 F1: Future + Unpin, in select5() argument
294 F2: Future + Unpin, in select5() argument
295 F3: Future + Unpin, in select5() argument
296 F4: Future + Unpin, in select5() argument
[all …]
/external/rust/crates/pin-project/tests/ui/unstable-features/
Dtrivial_bounds-feature-gate.rs8 impl Unpin for A where PhantomPinned: Unpin {} //~ ERROR E0277
12 impl<T> Unpin for Wrapper<T> where T: Unpin {}
16 impl Unpin for B where Wrapper<PhantomPinned>: Unpin {} //~ ERROR E0277
20 impl<T> Unpin for WrapperWithLifetime<'_, T> where T: Unpin {}
24 impl<'a> Unpin for C where WrapperWithLifetime<'a, PhantomPinned>: Unpin {} // Ok
34 impl Unpin for A where Inner: Unpin {} //~ ERROR E0277
38 impl<T> Unpin for Wrapper<T> where T: Unpin {}
42 impl Unpin for B where Wrapper<Inner>: Unpin {} //~ ERROR E0277
46 impl<T> Unpin for WrapperWithLifetime<'_, T> where T: Unpin {}
50 impl<'a> Unpin for C where WrapperWithLifetime<'a, Inner>: Unpin {} // Ok
Dtrivial_bounds.rs15 …impl Unpin for A where PhantomPinned: Unpin {} //~ ERROR Unpin does not depend on any type or life… in inner()
19 …impl Unpin for B where Inner: Unpin {} //~ ERROR Unpin does not depend on any type or lifetime par… in inner()
23 impl<T> Unpin for Wrapper<T> where T: Unpin {} in inner()
27 …impl Unpin for C where Wrapper<Inner>: Unpin {} //~ ERROR Unpin does not depend on any type or lif… in inner()
31 impl<T> Unpin for WrapperWithLifetime<'_, T> where T: Unpin {} in inner()
35 impl<'a> Unpin for D where WrapperWithLifetime<'a, Inner>: Unpin {} // Ok in inner()
Dtrivial_bounds-feature-gate.stderr4 8 | impl Unpin for A where PhantomPinned: Unpin {} //~ ERROR E0277
5 …| ^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `Phanto…
14 16 | impl Unpin for B where Wrapper<PhantomPinned>: Unpin {} //~ ERROR E0277
15 …| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented fo…
18 note: required because of the requirements on the impl of `Unpin` for `phantom_pinned::Wrapper<Phan…
21 12 | impl<T> Unpin for Wrapper<T> where T: Unpin {}
29 34 | impl Unpin for A where Inner: Unpin {} //~ ERROR E0277
30 …| ^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for…
44 42 | impl Unpin for B where Wrapper<Inner>: Unpin {} //~ ERROR E0277
45 …| ^^^^^^^^^^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implem…
[all …]
Dtrivial_bounds.stderr1 error: trait bound PhantomPinned: Unpin does not depend on any type or lifetime parameters
4 15 | impl Unpin for A where PhantomPinned: Unpin {} //~ ERROR Unpin does not depend on any type…
13 error: trait bound Inner: Unpin does not depend on any type or lifetime parameters
16 19 | impl Unpin for B where Inner: Unpin {} //~ ERROR Unpin does not depend on any type or life…
19 error: trait bound Wrapper<Inner>: Unpin does not depend on any type or lifetime parameters
22 27 | impl Unpin for C where Wrapper<Inner>: Unpin {} //~ ERROR Unpin does not depend on any typ…
/external/rust/crates/pin-project/tests/ui/not_unpin/
Dconflict-unpin.stderr1 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Foo<_, _>`
4 3 | #[pin_project(!Unpin)] //~ ERROR E0119
7 10 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {}
10 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Bar<_, _>`
13 12 | #[pin_project(!Unpin)] //~ ERROR E0119
16 19 | impl<T, U> Unpin for Bar<T, U> {}
19 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Baz<_, _>`
22 21 | #[pin_project(!Unpin)] //~ ERROR E0119
25 28 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {}
Dconflict-unpin.rs3 #[pin_project(!Unpin)] //~ ERROR E0119
10 impl<T, U> Unpin for Foo<T, U> where T: Unpin {}
12 #[pin_project(!Unpin)] //~ ERROR E0119
19 impl<T, U> Unpin for Bar<T, U> {}
21 #[pin_project(!Unpin)] //~ ERROR E0119
28 impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {}
Dimpl-unsafe-unpin.rs3 #[pin_project(!Unpin)] //~ ERROR E0119
10 unsafe impl<T, U> UnsafeUnpin for Foo<T, U> where T: Unpin {}
12 #[pin_project(!Unpin)] //~ ERROR E0119
21 #[pin_project(!Unpin)] //~ ERROR E0119
28 unsafe impl<T: Unpin, U: Unpin> UnsafeUnpin for Baz<T, U> {}
/external/rust/crates/futures-util/src/stream/
Dselect_all.rs42 impl<St: Stream + Unpin> SelectAll<St> {
89 impl<St: Stream + Unpin> Default for SelectAll<St> {
95 impl<St: Stream + Unpin> Stream for SelectAll<St> {
117 impl<St: Stream + Unpin> FusedStream for SelectAll<St> {
138 I::Item: Stream + Unpin, in select_all() argument
149 impl<St: Stream + Unpin> FromIterator<St> for SelectAll<St> {
155 impl<St: Stream + Unpin> Extend<St> for SelectAll<St> {
163 impl<St: Stream + Unpin> IntoIterator for SelectAll<St> {
172 impl<'a, St: Stream + Unpin> IntoIterator for &'a SelectAll<St> {
181 impl<'a, St: Stream + Unpin> IntoIterator for &'a mut SelectAll<St> {
[all …]
/external/rust/crates/pin-project/tests/ui/pin_project/
Dconflict-unpin.stderr1 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Foo<_, _>`
7 13 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {} // Conditional Unpin impl
12 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Bar<_, _>`
18 25 | impl<T, U> Unpin for Bar<T, U> {} // Non-conditional Unpin impl
23 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Baz<_, _>`
29 35 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {} // Conditional Unpin impl
Dconflict-unpin.rs13 impl<T, U> Unpin for Foo<T, U> where T: Unpin {} // Conditional Unpin impl
25 impl<T, U> Unpin for Bar<T, U> {} // Non-conditional Unpin impl
35 impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {} // Conditional Unpin impl
/external/rust/crates/pin-project-lite/tests/ui/pin_project/
Dconflict-unpin.stderr1 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Foo<_, _>`
13 14 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {} // Conditional Unpin impl
18 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Bar<_, _>`
30 27 | impl<T, U> Unpin for Bar<T, U> {} // Non-conditional Unpin impl
35 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Baz<_, _>`
47 38 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {} // Conditional Unpin impl
Dconflict-unpin.rs14 impl<T, U> Unpin for Foo<T, U> where T: Unpin {} // Conditional Unpin impl
27 impl<T, U> Unpin for Bar<T, U> {} // Non-conditional Unpin impl
38 impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {} // Conditional Unpin impl
/external/rust/crates/futures-util/src/io/
Dmod.rs206 Self: Unpin, in read() argument
218 Self: Unpin, in read_vectored() argument
262 Self: Unpin, in read_exact() argument
288 Self: Unpin, in read_to_end() argument
314 Self: Unpin, in read_to_string() argument
392 Self: Sized + Unpin, in compat() argument
426 Self: Unpin, in flush() argument
434 Self: Unpin, in close() argument
445 Self: Unpin, in write() argument
457 Self: Unpin, in write_vectored() argument
[all …]
/external/rust/crates/futures-util/src/future/
Dselect.rs14 impl<A: Unpin, B: Unpin> Unpin for Select<A, B> {}
86 A: Future + Unpin, in select() argument
87 B: Future + Unpin, in select() argument
96 A: Future + Unpin,
97 B: Future + Unpin,
119 A: Future + Unpin,
120 B: Future + Unpin,
Dtry_select.rs13 impl<A: Unpin, B: Unpin> Unpin for TrySelect<A, B> {}
52 A: TryFuture + Unpin, in try_select() argument
53 B: TryFuture + Unpin, in try_select() argument
61 impl<A: Unpin, B: Unpin> Future for TrySelect<A, B>
/external/rust/crates/futures-util/src/stream/futures_unordered/
Diter.rs18 pub struct IterMut<'a, Fut: Unpin>(pub(super) IterPinMut<'a, Fut>);
31 pub struct Iter<'a, Fut: Unpin>(pub(super) IterPinRef<'a, Fut>);
35 pub struct IntoIter<Fut: Unpin> {
40 impl<Fut: Unpin> Iterator for IntoIter<Fut> {
75 impl<Fut: Unpin> ExactSizeIterator for IntoIter<Fut> {}
106 impl<'a, Fut: Unpin> Iterator for IterMut<'a, Fut> {
118 impl<Fut: Unpin> ExactSizeIterator for IterMut<'_, Fut> {}
149 impl<'a, Fut: Unpin> Iterator for Iter<'a, Fut> {
161 impl<Fut: Unpin> ExactSizeIterator for Iter<'_, Fut> {}
171 unsafe impl<Fut: Send + Unpin> Send for IntoIter<Fut> {}
[all …]
/external/rust/crates/pin-project/tests/ui/unsafe_unpin/
Dconflict-unpin.stderr1 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Foo<_, _>`
7 10 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {}
12 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Bar<_, _>`
18 19 | impl<T, U> Unpin for Bar<T, U> {}
23 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Baz<_, _>`
29 28 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {}
Dconflict-unpin.rs10 impl<T, U> Unpin for Foo<T, U> where T: Unpin {}
19 impl<T, U> Unpin for Bar<T, U> {}
28 impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {}
/external/rust/crates/pin-project/tests/include/
Dbasic.rs4 unsafe impl<T: ::pin_project::__private::Unpin, U: ::pin_project::__private::Unpin>
9 unsafe impl<T: ::pin_project::__private::Unpin, U: ::pin_project::__private::Unpin>
14 unsafe impl<T: ::pin_project::__private::Unpin, U: ::pin_project::__private::Unpin>
/external/rust/crates/tokio-stream/tests/
Dasync_send_sync.rs13 fn require_unpin<T: Unpin>(_t: &T) {} in require_unpin()
34 impl<T: ?Sized + Unpin> AmbiguousIfUnpin<Invalid> for T {}
80 ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): !Unpin) => {
88 ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): Unpin) => {
102 async_assert_fn!(tokio_stream::StreamExt::next(&mut BoxStream<()>): !Unpin);
103 async_assert_fn!(tokio_stream::StreamExt::try_next(&mut BoxStream<Result<(), ()>>): !Unpin);
104 async_assert_fn!(tokio_stream::StreamExt::all(&mut BoxStream<()>, fn(())->bool): !Unpin);
105 async_assert_fn!(tokio_stream::StreamExt::any(&mut BoxStream<()>, fn(())->bool): !Unpin);
106 async_assert_fn!(tokio_stream::StreamExt::fold(&mut BoxStream<()>, (), fn((), ())->()): !Unpin);
107 async_assert_fn!(tokio_stream::StreamExt::collect<Vec<()>>(&mut BoxStream<()>): !Unpin);
/external/rust/crates/futures-util/src/sink/
Dmod.rs185 Self: Unpin, in close() argument
209 Self: Unpin, in flush() argument
222 Self: Unpin, in send() argument
235 Self: Unpin, in feed() argument
254 St: TryStream<Ok = Item, Error = Self::Error> + Stream + Unpin + ?Sized, in send_all()
256 Self: Unpin, in send_all() argument
295 Self: Sized + Unpin, in compat() argument
304 Self: Unpin, in poll_ready_unpin() argument
313 Self: Unpin, in start_send_unpin() argument
322 Self: Unpin, in poll_flush_unpin() argument
[all …]
/external/rust/crates/tokio/src/io/util/
Dasync_write_ext.rs33 fn $name<'a>(&'a mut self, n: $ty) -> $($fut)*<&'a mut Self> where Self: Unpin {
125 Self: Unpin,
173 Self: Unpin,
253 Self: Sized + Unpin,
317 Self: Sized + Unpin,
366 Self: Unpin,
1247 Self: Unpin,
1286 Self: Unpin,

12345678910>>...14