use mantle::Context; #[derive(mantle::Service, Default)] pub struct State(Option); impl State { pub fn new(ctx: &Context) -> Result { Ok(Default::default()) } fn hmmm() -> Result<(), String> { Err(format!("hmm")) } } fn main() { mantle::service!(State); }