Thanks to visit codestin.com
Credit goes to docs.rs

RsAsyncFunction

Trait RsAsyncFunction 

Source
pub trait RsAsyncFunction: Fn(Vec<Value>) -> Pin<Box<dyn Future<Output = Result<Value, Error>>>> + 'static { }
Expand description

Represents an async function that can be registered with the runtime

Implementors§

Source§

impl<F> RsAsyncFunction for F
where F: Fn(Vec<Value>) -> Pin<Box<dyn Future<Output = Result<Value, Error>>>> + 'static,