pub type AsyncCommandFn<T> = fn(_: &mut T, _: Vec<String>) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + '_>>;
Stores an asynchronous function for a Command.
Command
It requires the function returns a Result<(), Box<dyn Error>>.
Result<(), Box<dyn Error>>
To prepare for this you have to use the async_fn! macro to prepare the function.
async_fn!