hashira 0.0.2-alpha

A server side rendering framework build on top of Yew
Documentation
1
2
3
4
5
6
7
8
use crate::{app::AppService, error::BoxError};

/// Base trait for adapters.
#[async_trait::async_trait]
pub trait Adapter {
    /// Starts the server.
    async fn serve(self, app: AppService) -> Result<(), BoxError>;
}