Type Alias shellfish::command::AsyncCommandFn

source ·
pub type AsyncCommandFn<T> = fn(_: &mut T, _: Vec<String>) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + '_>>;
Expand description

Stores an asynchronous function for a Command.

It requires the function returns a Result<(), Box<dyn Error>>.

To prepare for this you have to use the async_fn! macro to prepare the function.