• Home
  • Raw
  • Download

Lines Matching full:async

26     async fn selfvalue(self)  in selfvalue()
32 async fn selfref(&self) {} in selfref()
34 async fn selfmut(&mut self) {} in selfmut()
36 async fn required() -> Self::Assoc; in required()
38 async fn elided_lifetime(_x: &str) {} in elided_lifetime()
40 async fn explicit_lifetime<'a>(_x: &'a str) {} in explicit_lifetime()
42 async fn generic_type_param<T: Send>(x: Box<T>) -> T { in generic_type_param()
46 async fn calls(&self) { in calls()
52 async fn calls_mut(&mut self) { in calls_mut()
63 async fn selfvalue(self) {} in selfvalue()
65 async fn selfref(&self) {} in selfref()
67 async fn selfmut(&mut self) {} in selfmut()
69 async fn required() -> Self::Assoc {} in required()
71 async fn elided_lifetime(_x: &str) {} in elided_lifetime()
73 async fn explicit_lifetime<'a>(_x: &'a str) {} in explicit_lifetime()
75 async fn generic_type_param<T: Send>(x: Box<T>) -> T { in generic_type_param()
79 async fn calls(&self) { in calls()
85 async fn calls_mut(&mut self) { in calls_mut()
90 pub async fn test() { in test()
106 pub async fn test_object_safe_without_default() { in test_object_safe_without_default()
109 async fn f(&self); in test_object_safe_without_default()
114 async fn f(&self) {} in test_object_safe_without_default()
121 pub async fn test_object_safe_with_default() { in test_object_safe_with_default()
124 async fn f(&self) {} in test_object_safe_with_default()
129 async fn f(&self) {} in test_object_safe_with_default()
136 pub async fn test_object_no_send() { in test_object_no_send()
139 async fn f(&self) {} in test_object_no_send()
144 async fn f(&self) {} in test_object_no_send()
163 pub async fn test_can_destruct() { in test_can_destruct()
166 async fn f(&self, foos: (u8, u8, u8, u8)); in test_can_destruct()
171 async fn f(&self, (a, ref mut b, ref c, d): (u8, u8, u8, u8)) { in test_can_destruct()
180 pub async fn test_self_in_macro() { in test_self_in_macro()
183 async fn a(self); in test_self_in_macro()
184 async fn b(&mut self); in test_self_in_macro()
185 async fn c(&self); in test_self_in_macro()
190 async fn a(self) { in test_self_in_macro()
193 async fn b(&mut self) { in test_self_in_macro()
196 async fn c(&self) { in test_self_in_macro()
202 pub async fn test_inference() { in test_inference()
205 async fn f() -> Box<dyn Iterator<Item = ()>> { in test_inference()
211 pub async fn test_internal_items() { in test_internal_items()
215 async fn f(self) { in test_internal_items()
227 pub async fn test_unimplemented() { in test_unimplemented()
230 async fn f() { in test_unimplemented()
236 // https://github.com/dtolnay/async-trait/issues/1
242 async fn f<U>(&self); in f()
247 async fn f<U>(&self) {} in f()
251 // https://github.com/dtolnay/async-trait/issues/2
258 async fn flatten(self) -> <Self::Output as Future>::Output in flatten()
269 // https://github.com/dtolnay/async-trait/issues/9
275 async fn f(_x: Self) {} in f()
279 // https://github.com/dtolnay/async-trait/issues/11
286 async fn example(self: Arc<Self>); in example()
293 async fn example(self: Arc<Self>) {} in example()
297 // https://github.com/dtolnay/async-trait/issues/15
306 async fn myfn(&self, _: PhantomData<dyn Trait + Send>) {} in myfn()
310 // https://github.com/dtolnay/async-trait/issues/17
316 async fn f(&self); in f()
325 async fn f(&self) { in f()
331 // https://github.com/dtolnay/async-trait/issues/23
337 async fn f(self); in f()
339 async fn g(mut self) in g()
351 async fn f(mut self) { in f()
359 // https://github.com/dtolnay/async-trait/issues/25
368 async fn async_to_string(&self) -> String; in async_to_string()
373 async fn async_to_string(&self) -> String { in async_to_string()
387 default async fn async_to_string(&self) -> String {
406 // https://github.com/dtolnay/async-trait/issues/28
414 async fn f(x: Str<'a>) -> &'a str; in f()
415 async fn g(x: Str<'a>) -> &'a str { in g()
422 async fn f(x: Str<'a>) -> &'a str { in f()
429 async fn f(); in f()
434 async fn f() {} in f()
439 async fn f(_: &'a &'b ()); // chain 'a and 'b in f()
440 async fn g(_: &'b ()); // chain 'b only in g()
441 async fn h(); // do not chain in h()
445 // https://github.com/dtolnay/async-trait/issues/31
455 async fn hello(thing: Struct<'a>) -> String; in hello()
456 async fn hello_twice(one: Struct<'a>, two: Struct<'a>) -> String { in hello_twice()
464 // https://github.com/dtolnay/async-trait/issues/42
470 async fn from_parts() -> Self; in from_parts()
477 async fn from_parts() -> TokenContext { in from_parts()
483 // https://github.com/dtolnay/async-trait/issues/44
493 async fn get_one() -> u8 { in get_one()
504 // https://github.com/dtolnay/async-trait/issues/45
518 async fn foo(&mut self, v: usize); in foo()
523 async fn bar(&self); in bar()
532 async fn foo(&mut self, v: usize) { in foo()
544 async fn bar(&self) { in bar()
549 // A simple subscriber implementation to test the behavior of async-trait
641 // https://github.com/dtolnay/async-trait/issues/46
649 async fn f<$tyargs: $ty>(&mut self, x: $tyargs) {
662 async fn f<$tyargs: $ty>(&mut self, x: $tyargs) {
672 // https://github.com/dtolnay/async-trait/issues/53
684 async fn method(); in method()
689 async fn method() { in method()
696 async fn method() { in method()
703 async fn method() { in method()
710 async fn method() { in method()
716 // https://github.com/dtolnay/async-trait/issues/57
724 async fn const_generic<T: Send, const C: usize>(_: [T; C]) {} in const_generic()
731 async fn const_generic<T: Send, const C: usize>(_: [T; C]) {} in const_generic()
741 // https://github.com/dtolnay/async-trait/issues/68
746 async fn method(&self) { in method()
757 // https://github.com/dtolnay/async-trait/issues/73
765 async fn associated(&self) { in associated()
771 // https://github.com/dtolnay/async-trait/issues/81
777 async fn handle(&self); in handle()
786 async fn handle(&self) { in handle()
793 // https://github.com/dtolnay/async-trait/issues/83
801 async fn f(&self) {} in f()
802 async fn g(self: &Self) {} in g()
806 // https://github.com/dtolnay/async-trait/issues/85
815 async fn camelCase(); in camelCase()
822 async fn camelCase() {} in camelCase()
826 // https://github.com/dtolnay/async-trait/issues/87
832 async fn f(&self); in f()
845 async fn f(&self) { in f()
855 async fn f(&self) { in f()
863 // https://github.com/dtolnay/async-trait/issues/89
871 async fn f(&self); in f()
876 async fn f(&self) {} in f()
881 async fn f(&self) {} in f()
886 async fn f(&self) {} in f()
890 // https://github.com/dtolnay/async-trait/issues/92
906 async fn associated1() {} in associated1()
918 async fn associated2(&self) { in associated2()
941 async fn associated2(&self) { in associated2()
966 async fn associated2(&self) { in associated2()
972 // https://github.com/dtolnay/async-trait/issues/92#issuecomment-683370136
988 async fn func2() { in func2()
1001 // https://github.com/dtolnay/async-trait/issues/104
1007 async fn id(&self) -> i32; in id()
1014 async fn id(&self) -> i32 {
1026 // https://github.com/dtolnay/async-trait/issues/106
1035 async fn spawn<F, Fut, T>(&self, work: F) -> T in spawn()
1048 async fn spawn<F, Fut, T>(&self, work: F) -> T in spawn()
1058 // https://github.com/dtolnay/async-trait/issues/110
1065 async fn load(&self, key: &str); in load()
1074 async fn load(&self, _key: &str) {} in load()
1078 // https://github.com/dtolnay/async-trait/issues/120
1086 async fn f(&self); in f()
1091 async fn f(&self) {} in f()
1095 // https://github.com/dtolnay/async-trait/issues/123
1101 async fn f(&self) -> &str in f()
1113 // https://github.com/dtolnay/async-trait/issues/129
1119 async fn a(_b: u8, c: u8) -> u8 { in a()
1128 async fn a(_b: u8, c: u8) -> u8 { in a()
1134 // https://github.com/dtolnay/async-trait/issues/134
1141 async fn run<const DUMMY: bool>(self) in run()
1152 async fn run<const DUMMY: bool>(self) in run()
1160 // https://github.com/dtolnay/async-trait/pull/125#pullrequestreview-491880881
1176 async fn async_trait(_: Flagger<'_>, flag: &AtomicBool); in async_trait()
1183 async fn async_trait(_: Flagger<'_>, flag: &AtomicBool) { in async_trait()
1188 async fn standalone(_: Flagger<'_>, flag: &AtomicBool) { in standalone()
1194 async fn async_trait(self, flag: &AtomicBool); in async_trait()
1199 async fn async_trait(self, flag: &AtomicBool) { in async_trait()
1221 // https://github.com/dtolnay/async-trait/issues/145
1232 async fn connect(&self) -> Result<Self::Connection, Self::Error>; in connect()
1236 // https://github.com/dtolnay/async-trait/issues/147
1246 async fn x(); in x()
1247 async fn y() -> (); in y()
1248 async fn z(); in z()
1253 async fn x() {} in x()
1254 async fn y() -> () {} in y()
1255 async fn z() { in z()
1261 // https://github.com/dtolnay/async-trait/issues/149
1269 pub async fn ok() -> &'static dyn Ret { in ok()
1275 async fn fail() -> &'static dyn Ret { in fail()
1281 // https://github.com/dtolnay/async-trait/issues/152
1290 async fn f(&self) -> Self::Assoc; in f()
1299 async fn f(&self) -> Self::Assoc {}
1303 // https://github.com/dtolnay/async-trait/issues/154
1311 async fn f(&self); in f()
1318 async fn f(&self) { in f()
1325 // https://github.com/dtolnay/async-trait/issues/158
1333 async fn f(&self) { in f()
1339 // https://github.com/dtolnay/async-trait/issues/161
1348 async fn f(self: Arc<Self>); in f()
1355 async fn f(self: Arc<Self>) { in f()
1357 _ = async { in f()
1365 // https://github.com/dtolnay/async-trait/issues/169
1372 async fn f(&self) {} in f()
1378 // https://github.com/dtolnay/async-trait/issues/177
1384 async fn foo(&self, _callback: impl FnMut(&str) + Send) {} in foo()
1391 async fn foo(&self, _callback: impl FnMut(&str) + Send) {} in foo()
1395 // https://github.com/dtolnay/async-trait/issues/183
1403 async fn foo(_n: i32) {} in foo()
1407 // https://github.com/dtolnay/async-trait/issues/199
1422 async fn f(counter: &Cell<usize>, arg: IncrementOnDrop<'_>); in f()
1429 async fn f(counter: &Cell<usize>, _: IncrementOnDrop<'_>) { in f()
1444 // https://github.com/dtolnay/async-trait/issues/204
1450 async fn f(arg: &impl Trait); in f()
1451 async fn g(arg: *const impl Trait); in g()
1455 // https://github.com/dtolnay/async-trait/issues/210
1462 async fn f(self: Arc<Self>) {} in f()
1466 // https://github.com/dtolnay/async-trait/issues/226
1472 async fn cfg_param(&self, param: u8); in cfg_param()
1473 async fn cfg_param_wildcard(&self, _: u8); in cfg_param_wildcard()
1474 async fn cfg_param_tuple(&self, (left, right): (u8, u8)); in cfg_param_tuple()
1481 async fn cfg_param(&self, #[cfg(any())] param: u8, #[cfg(all())] _unused: u8) {} in cfg_param()
1483 async fn cfg_param_wildcard(&self, #[cfg(any())] _: u8, #[cfg(all())] _: u8) {} in cfg_param_wildcard()
1485 async fn cfg_param_tuple( in cfg_param_tuple()
1494 // https://github.com/dtolnay/async-trait/issues/232
1500 async fn take_ref(&self, thing: &T); in take_ref()
1507 async fn take_ref(&self, _: &T) {} in take_ref()
1514 async fn take_ref(&self, (a, b): &(T, T)) { in take_ref()
1524 async fn take_ref(&self, (_a, _b, _c): &(T, T, T)) {} in take_ref()
1528 // https://github.com/dtolnay/async-trait/issues/234
1542 async fn f(arg: Tuple<Droppable, i32>); in f()
1549 async fn f(Tuple(_, _int): Tuple<Droppable, i32>) {} in f()
1556 async fn f(Tuple { 1: _int, .. }: Tuple<Droppable, i32>) {}
1560 // https://github.com/dtolnay/async-trait/issues/236
1569 pub async fn async_fn() -> Ready<()> { in async_fn()
1575 async { future::ready(()) } in impl_future_fn()
1579 // put its own allow(async_yeilds_async) to remain consistent with async fn.
1582 async fn f() -> Ready<()> { in f()