pub trait Handler { type Msg; // Required method fn update(&mut self, stream: &Stream<Self::Msg>, msg: Self::Msg); }