no_stdFeatures like async-trait, avoid using Box and dyn.
This crate is ready for #![no_std] when PR69033 merged.
Thanks to crate async-trait, some code from these.
WARNING: This crate use some unstable even incomplete feature. You will get some warning from compiler.
Self
Self by reference.Self by value.Self by mut reference.Self.Self.Lifetime return).These feature all require
generic_associated_typessupport type arguments.
Following issue: #44265
async fn implementations in trait (Wait feature generic_associated_types support type arguments).generic_associated_types support type arguments).generic_associated_types support type arguments).impl trait in arguments (Wait for feature generic_associated_types support type arguments).Please enable feature type_alias_impl_trait and generic_associated_types;
```rust
use asynctraitstatic::async_trait;
async fn hello() -> u8 { 1 }
trait AsyncFnTrait { async fn run(&self); }
struct AsyncStruct;
impl AsyncFnTrait for AsyncStruct { async fn run(&self) { hello().await; } }
```