tcplane/server/func/
impl.rs

1use crate::*;
2
3impl<F> Func for F where
4    F: Fn(ControllerData) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>
5        + Send
6        + Sync
7        + 'static
8{
9}
10
11impl<F, Fut> AsyncFuncWithoutPin<Fut> for F
12where
13    F: Fn(ControllerData) -> Fut + Send + Sync + 'static,
14    Fut: Future<Output = ()> + Send + 'static,
15{
16}