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
15
16
17
/*
    Appellation: action <module>
    Contrib: FL03 <jo3mccain@icloud.com>
*/

/// An [Action] generally requires some context and operates upon some data to produce some
/// output. Outputs are generally
pub trait Action<T> {
    type Ctx: RawContext<Data = T>;
    type Output;

    fn begin(&self, ctx: &Self::Ctx) -> Self::Output;
}

pub trait RawContext {
    type Data;
}