DispatchFn

Type Alias DispatchFn 

Source
pub type DispatchFn<T> = for<'a> fn(&'a T, u16, &'a [u8]) -> Pin<Box<dyn Future<Output = DispatchResult> + Send + 'a>>;
Expand description

Type alias for dispatch handler functions. Takes (service, method_id, payload) and returns either unary or streaming result.