Struct dcl_rpc::server::RpcServerPort
source · pub struct RpcServerPort<Context> {
pub name: String,
/* private fields */
}Expand description
RpcServerPort is what a RpcServer contains to handle different services/modules
Fields§
§name: StringRpcServer name
Implementations§
source§impl<Context> RpcServerPort<Context>
impl<Context> RpcServerPort<Context>
sourcepub fn register_module(
&mut self,
module_name: String,
service_definition: ServiceModuleDefinition<Context>
)
pub fn register_module( &mut self, module_name: String, service_definition: ServiceModuleDefinition<Context> )
Just register the module in the port