aboutsummaryrefslogtreecommitdiff
path: root/examples/async/interfaces/food.rs
blob: ae5eaef346401a0cad7357c90005d5e19678553b (plain)
1
2
3
4
5
6
7
8
9
use syrette::factory;

pub trait IFood
{
    fn eat(&self);
}

#[factory(threadsafe = true)]
pub type IFoodFactory = dyn Fn() -> dyn IFood;