Skip to main content

RawEventHandlerFunc

Type Alias RawEventHandlerFunc 

Source
pub type RawEventHandlerFunc = fn(Context, RawUpdate) -> Pin<Box<dyn Future<Output = ()> + Send>>;
Expand description

A function that handles a new raw update, it receives a Context and RawUpdate and returns a pinned future. Wrap an async function with #[prepare_listener] for easier development.