Lines Matching +full:rust +full:- +full:src
4 …src="https://img.shields.io/badge/github-dtolnay/async--trait-8da0cb?style=for-the-badge&labelColo…
5 ….io" src="https://img.shields.io/crates/v/async-trait.svg?style=for-the-badge&color=fc8d62&logo=ru…
6 …src="https://img.shields.io/badge/docs.rs-async--trait-66c2a5?style=for-the-badge&labelColor=55555…
7 …" src="https://img.shields.io/github/workflow/status/dtolnay/async-trait/CI/master?style=for-the-b…
9 The initial round of stabilizations for the async/await language feature in Rust
13 ```rust
21 --> src/main.rs:4:5
33 [hard]: https://smallcultfollowing.com/babysteps/blog/2019/10/26/async-fn-in-traits-are-hard/
45 ```rust
86 It is the intention that all features of Rust traits should work nicely with
92 - 👍 Self by value, by reference, by mut reference, or no self;
93 - 👍 Any number of arguments, any return value;
94 - 👍 Generic type parameters and lifetime parameters;
95 - 👍 Associated types;
96 - 👍 Having async and non-async functions in the same trait;
97 - 👍 Default implementations provided by the trait;
98 - 👍 Elided lifetimes;
99 - 👍 Dyn-capable traits.
111 ```rust
115 ) -> Pin<Box<dyn std::future::Future<Output = ()> + Send + 'async_trait>>
130 ## Non-threadsafe futures
147 ```rust
158 --> src/main.rs:9:29
161 | ^^^^^^- help: indicate the anonymous lifetime: `<'_>`
166 ```rust
181 usual requirements for dyn -- no methods with type parameters, no self by value,
184 ```rust
211 --> src/main.rs:8:5
224 ```rust
236 ```rust
252 Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
253 2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
260 for inclusion in this crate by you, as defined in the Apache-2.0 license, shall