hyperlane_plugin_grpc/type.rs
1use super::*;
2
3/// Boxed `Send` future returned by an async unary gRPC service handler.
4pub type GrpcFuture = Pin<Box<dyn Future<Output = Result<Vec<u8>, GrpcError>> + Send>>;
5
6/// Thread-safe async unary gRPC service handler receiving decoded request payload bytes.
7pub type GrpcHandler = Arc<dyn Fn(Vec<u8>) -> GrpcFuture + Send + Sync>;