APIHandler

Trait APIHandler 

Source
pub trait APIHandler {
    type State: Clone + Send + Sync + 'static;

    // Required methods
    fn generate_initial_state(&self) -> Self::State;
    fn generate_routes(&self) -> Router<Self::State>;
}

Required Associated Types§

Source

type State: Clone + Send + Sync + 'static

Required Methods§

Implementors§