| 22 | } |
| 23 | |
| 24 | struct HandlerImpl<S, M: prost::Message + Default, H: MessageHandler<S, M>> { |
| 25 | id: u32, |
| 26 | handler: Box<H>, |
| 27 | _phantom1: PhantomData<S>, |
| 28 | _phantom2: PhantomData<M>, |
| 29 | } |
| 30 | |
| 31 | impl<S, M: prost::Message + Default, H: MessageHandler<S, M>> HandlerImpl<S, M, H> { |
| 32 | pub fn new(id: u32, handler: H) -> Box<Self> { |
nothing calls this directly
no outgoing calls
no test coverage detected