use oasis_std::Context; #[derive(oasis_std::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() { oasis_std::service!(State); }