pzzld-server 0.0.2

A production ready server optimized for WASM applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
    Appellation: handlers <module>
    Contrib: FL03 <jo3mccain@icloud.com>
*/
use async_trait::async_trait;

/// [AsyncHandle] is a trait used to define the method used to process a particular command,
/// event, etc.
#[async_trait]
pub trait AsyncHandle<T> {
    type Output;

    async fn handle(self, ctx: &mut T) -> Self::Output;
}