/// Creates a server instance around the node service implementation.
Creates a server instance around the node service implementation.
Creates a server instance around the node service implementation .
pub fn new(node: T, executor: E) -> Self {
        let grpc_service = gen_server::NodeServer::new(NodeService::new(node));
        let h2 = tower_h2::Server::new(grpc_service, Default::default(), executor);
        Server { h2 }
    }
pub fn new ( node : T , executor : E ) -> Self { let grpc_service = gen_server :: NodeServer :: new ( NodeService :: new ( node ) ) ; let h2 = tower_h2 :: Server :: new ( grpc_service , Default :: default ( ) , executor ) ; Server { h2 } }
Creates a server instance around the node service implementation.
Creates a server instance around the node service implementation .
node
T
executor
E