Lines Matching full:async
28 async fn selfvalue(self) in selfvalue()
34 async fn selfref(&self) {} in selfref()
36 async fn selfmut(&mut self) {} in selfmut()
38 async fn required() -> Self::Assoc; in required()
40 async fn elided_lifetime(_x: &str) {} in elided_lifetime()
42 async fn explicit_lifetime<'a>(_x: &'a str) {} in explicit_lifetime()
44 async fn generic_type_param<T: Send>(x: Box<T>) -> T { in generic_type_param()
48 async fn calls(&self) { in calls()
54 async fn calls_mut(&mut self) { in calls_mut()
65 async fn selfvalue(self) {} in selfvalue()
67 async fn selfref(&self) {} in selfref()
69 async fn selfmut(&mut self) {} in selfmut()
71 async fn required() -> Self::Assoc {} in required()
73 async fn elided_lifetime(_x: &str) {} in elided_lifetime()
75 async fn explicit_lifetime<'a>(_x: &'a str) {} in explicit_lifetime()
77 async fn generic_type_param<T: Send>(x: Box<T>) -> T { in generic_type_param()
81 async fn calls(&self) { in calls()
87 async fn calls_mut(&mut self) { in calls_mut()
92 pub async fn test() { in test()
108 pub async fn test_object_safe_without_default() { in test_object_safe_without_default()
111 async fn f(&self); in test_object_safe_without_default()
116 async fn f(&self) {} in test_object_safe_without_default()
123 pub async fn test_object_safe_with_default() { in test_object_safe_with_default()
126 async fn f(&self) {} in test_object_safe_with_default()
131 async fn f(&self) {} in test_object_safe_with_default()
138 pub async fn test_object_no_send() { in test_object_no_send()
141 async fn f(&self) {} in test_object_no_send()
146 async fn f(&self) {} in test_object_no_send()
165 pub async fn test_can_destruct() { in test_can_destruct()
168 async fn f(&self, foos: (u8, u8, u8, u8)); in test_can_destruct()
173 async fn f(&self, (a, ref mut b, ref c, d): (u8, u8, u8, u8)) { in test_can_destruct()
182 pub async fn test_self_in_macro() { in test_self_in_macro()
185 async fn a(self); in test_self_in_macro()
186 async fn b(&mut self); in test_self_in_macro()
187 async fn c(&self); in test_self_in_macro()
192 async fn a(self) { in test_self_in_macro()
195 async fn b(&mut self) { in test_self_in_macro()
198 async fn c(&self) { in test_self_in_macro()
204 pub async fn test_inference() { in test_inference()
207 async fn f() -> Box<dyn Iterator<Item = ()>> { in test_inference()
213 pub async fn test_internal_items() { in test_internal_items()
217 async fn f(self) { in test_internal_items()
229 pub async fn test_unimplemented() { in test_unimplemented()
232 async fn f() { in test_unimplemented()
238 // https://github.com/dtolnay/async-trait/issues/1
244 async fn f<U>(&self); in f()
249 async fn f<U>(&self) {} in f()
253 // https://github.com/dtolnay/async-trait/issues/2
260 async fn flatten(self) -> <Self::Output as Future>::Output in flatten()
271 // https://github.com/dtolnay/async-trait/issues/9
277 async fn f(_x: Self) {} in f()
281 // https://github.com/dtolnay/async-trait/issues/11
288 async fn example(self: Arc<Self>); in example()
295 async fn example(self: Arc<Self>) {} in example()
299 // https://github.com/dtolnay/async-trait/issues/15
308 async fn myfn(&self, _: PhantomData<dyn Trait + Send>) {} in myfn()
312 // https://github.com/dtolnay/async-trait/issues/17
318 async fn f(&self); in f()
327 async fn f(&self) { in f()
333 // https://github.com/dtolnay/async-trait/issues/23
339 async fn f(self); in f()
341 async fn g(mut self) in g()
353 async fn f(mut self) { in f()
361 // https://github.com/dtolnay/async-trait/issues/25
370 async fn async_to_string(&self) -> String; in async_to_string()
375 async fn async_to_string(&self) -> String { in async_to_string()
389 default async fn async_to_string(&self) -> String {
408 // https://github.com/dtolnay/async-trait/issues/28
416 async fn f(x: Str<'a>) -> &'a str; in f()
417 async fn g(x: Str<'a>) -> &'a str { in g()
424 async fn f(x: Str<'a>) -> &'a str { in f()
431 async fn f(); in f()
436 async fn f() {} in f()
441 async fn f(_: &'a &'b ()); // chain 'a and 'b in f()
442 async fn g(_: &'b ()); // chain 'b only in g()
443 async fn h(); // do not chain in h()
447 // https://github.com/dtolnay/async-trait/issues/31
457 async fn hello(thing: Struct<'a>) -> String; in hello()
458 async fn hello_twice(one: Struct<'a>, two: Struct<'a>) -> String { in hello_twice()
466 // https://github.com/dtolnay/async-trait/issues/42
472 async fn from_parts() -> Self; in from_parts()
479 async fn from_parts() -> TokenContext { in from_parts()
485 // https://github.com/dtolnay/async-trait/issues/44
495 async fn get_one() -> u8 { in get_one()
506 // https://github.com/dtolnay/async-trait/issues/45
520 async fn foo(&mut self, v: usize); in foo()
525 async fn bar(&self); in bar()
534 async fn foo(&mut self, v: usize) { in foo()
546 async fn bar(&self) { in bar()
551 // A simple subscriber implementation to test the behavior of async-trait
643 // https://github.com/dtolnay/async-trait/issues/46
651 async fn f<$tyargs: $ty>(&mut self, x: $tyargs) {
664 async fn f<$tyargs: $ty>(&mut self, x: $tyargs) {
674 // https://github.com/dtolnay/async-trait/issues/53
686 async fn method(); in method()
691 async fn method() { in method()
698 async fn method() { in method()
705 async fn method() { in method()
712 async fn method() { in method()
718 // https://github.com/dtolnay/async-trait/issues/57
726 async fn const_generic<T: Send, const C: usize>(_: [T; C]) {} in const_generic()
733 async fn const_generic<T: Send, const C: usize>(_: [T; C]) {} in const_generic()
743 // https://github.com/dtolnay/async-trait/issues/68
747 async fn method(&self) { in method()
758 // https://github.com/dtolnay/async-trait/issues/73
766 async fn associated(&self) { in associated()
772 // https://github.com/dtolnay/async-trait/issues/81
778 async fn handle(&self); in handle()
787 async fn handle(&self) { in handle()
794 // https://github.com/dtolnay/async-trait/issues/83
802 async fn f(&self) {} in f()
803 async fn g(self: &Self) {} in g()
807 // https://github.com/dtolnay/async-trait/issues/85
816 async fn camelCase(); in camelCase()
823 async fn camelCase() {} in camelCase()
827 // https://github.com/dtolnay/async-trait/issues/87
833 async fn f(&self); in f()
846 async fn f(&self) { in f()
856 async fn f(&self) { in f()
864 // https://github.com/dtolnay/async-trait/issues/89
872 async fn f(&self); in f()
877 async fn f(&self) {} in f()
882 async fn f(&self) {} in f()
887 async fn f(&self) {} in f()
891 // https://github.com/dtolnay/async-trait/issues/92
907 async fn associated1() {} in associated1()
919 async fn associated2(&self) { in associated2()
942 async fn associated2(&self) { in associated2()
967 async fn associated2(&self) { in associated2()
973 // https://github.com/dtolnay/async-trait/issues/92#issuecomment-683370136
989 async fn func2() { in func2()
1002 // https://github.com/dtolnay/async-trait/issues/104
1008 async fn id(&self) -> i32; in id()
1015 async fn id(&self) -> i32 {
1027 // https://github.com/dtolnay/async-trait/issues/106
1036 async fn spawn<F, Fut, T>(&self, work: F) -> T in spawn()
1049 async fn spawn<F, Fut, T>(&self, work: F) -> T in spawn()
1059 // https://github.com/dtolnay/async-trait/issues/110
1066 async fn load(&self, key: &str); in load()
1075 async fn load(&self, _key: &str) {} in load()
1079 // https://github.com/dtolnay/async-trait/issues/120
1087 async fn f(&self); in f()
1092 async fn f(&self) {} in f()
1096 // https://github.com/dtolnay/async-trait/issues/123
1102 async fn f(&self) -> &str in f()
1114 // https://github.com/dtolnay/async-trait/issues/129
1120 async fn a(_b: u8, c: u8) -> u8 { in a()
1129 async fn a(_b: u8, c: u8) -> u8 { in a()
1135 // https://github.com/dtolnay/async-trait/issues/134
1142 async fn run<const DUMMY: bool>(self) in run()
1153 async fn run<const DUMMY: bool>(self) in run()
1161 // https://github.com/dtolnay/async-trait/pull/125#pullrequestreview-491880881
1177 async fn async_trait(_: Flagger<'_>, flag: &AtomicBool); in async_trait()
1184 async fn async_trait(_: Flagger<'_>, flag: &AtomicBool) { in async_trait()
1189 async fn standalone(_: Flagger<'_>, flag: &AtomicBool) { in standalone()
1195 async fn async_trait(self, flag: &AtomicBool); in async_trait()
1200 async fn async_trait(self, flag: &AtomicBool) { in async_trait()
1222 // https://github.com/dtolnay/async-trait/issues/145
1233 async fn connect(&self) -> Result<Self::Connection, Self::Error>; in connect()
1237 // https://github.com/dtolnay/async-trait/issues/147
1247 async fn x(); in x()
1248 async fn y() -> (); in y()
1249 async fn z(); in z()
1254 async fn x() {} in x()
1255 async fn y() -> () {} in y()
1256 async fn z() { in z()
1262 // https://github.com/dtolnay/async-trait/issues/149
1270 pub async fn ok() -> &'static dyn Ret { in ok()
1276 async fn fail() -> &'static dyn Ret { in fail()
1282 // https://github.com/dtolnay/async-trait/issues/152
1291 async fn f(&self) -> Self::Assoc; in f()
1300 async fn f(&self) -> Self::Assoc {}
1304 // https://github.com/dtolnay/async-trait/issues/154
1312 async fn f(&self); in f()
1319 async fn f(&self) { in f()
1326 // https://github.com/dtolnay/async-trait/issues/158
1334 async fn f(&self) { in f()
1340 // https://github.com/dtolnay/async-trait/issues/161
1349 async fn f(self: Arc<Self>); in f()
1356 async fn f(self: Arc<Self>) { in f()
1358 () = async { in f()
1366 // https://github.com/dtolnay/async-trait/issues/169
1373 async fn f(&self) {} in f()
1379 // https://github.com/dtolnay/async-trait/issues/177
1385 async fn foo(&self, _callback: impl FnMut(&str) + Send) {} in foo()
1392 async fn foo(&self, _callback: impl FnMut(&str) + Send) {} in foo()
1396 // https://github.com/dtolnay/async-trait/issues/183
1404 async fn foo(_n: i32) {} in foo()
1408 // https://github.com/dtolnay/async-trait/issues/199
1423 async fn f(counter: &Cell<usize>, arg: IncrementOnDrop<'_>); in f()
1430 async fn f(counter: &Cell<usize>, _: IncrementOnDrop<'_>) { in f()
1445 // https://github.com/dtolnay/async-trait/issues/204
1451 async fn f(arg: &impl Trait); in f()
1452 async fn g(arg: *const impl Trait); in g()
1456 // https://github.com/dtolnay/async-trait/issues/210
1463 async fn f(self: Arc<Self>) {} in f()
1467 // https://github.com/dtolnay/async-trait/issues/226
1473 async fn cfg_param(&self, param: u8); in cfg_param()
1474 async fn cfg_param_wildcard(&self, _: u8); in cfg_param_wildcard()
1475 async fn cfg_param_tuple(&self, (left, right): (u8, u8)); in cfg_param_tuple()
1482 async fn cfg_param(&self, #[cfg(any())] param: u8, #[cfg(all())] _unused: u8) {} in cfg_param()
1484 async fn cfg_param_wildcard(&self, #[cfg(any())] _: u8, #[cfg(all())] _: u8) {} in cfg_param_wildcard()
1486 async fn cfg_param_tuple( in cfg_param_tuple()
1495 // https://github.com/dtolnay/async-trait/issues/232
1501 async fn take_ref(&self, thing: &T); in take_ref()
1508 async fn take_ref(&self, _: &T) {} in take_ref()
1515 async fn take_ref(&self, (a, b): &(T, T)) { in take_ref()
1525 async fn take_ref(&self, (_a, _b, _c): &(T, T, T)) {} in take_ref()
1529 // https://github.com/dtolnay/async-trait/issues/234
1543 async fn f(arg: Tuple<Droppable, i32>); in f()
1550 async fn f(Tuple(_, _int): Tuple<Droppable, i32>) {} in f()
1557 async fn f(Tuple { 1: _int, .. }: Tuple<Droppable, i32>) {}
1561 // https://github.com/dtolnay/async-trait/issues/236
1570 pub async fn async_fn() -> Ready<()> { in async_fn()
1576 async { future::ready(()) } in impl_future_fn()
1580 // put its own allow(async_yeilds_async) to remain consistent with async fn.
1583 async fn f() -> Ready<()> { in f()
1589 // https://github.com/dtolnay/async-trait/issues/238
1597 async fn f(); in f()
1604 async fn f() {} in f()