Hello, I have encountered a question: functions in traits cannot be declared async
#481
Labels
help wanted
Extra attention is needed
async
#481
error[E0706]: functions in traits cannot be declared
async
--> xxx\Rust.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\fast_pool-0.2.0\src\lib.rs:53:5
|
53 | async fn connect(&self) -> Result<Self::Connection, Self::Error>;
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
|
async
because of this|
= note:
async
trait functions are not currently supported= note: consider using the
async-trait
crate: https://crates.io/crates/async-trait= note: see issue #91611 rust-lang/rust#91611 for more information
I see that it is
The reason for using asynchronous here
The text was updated successfully, but these errors were encountered: