Skip to main content

build_basic_pair

Function build_basic_pair 

Source
pub fn build_basic_pair(svc: &ServiceDef) -> RpcResult<(RequestType, ReplyType)>
Expand description

Returns the data models of the basic-layout topics (<Service>_Request plus <Service>_Reply). An empty ServiceDef returns a pair with empty unions — the caller must decide for itself whether to discard it.

§Errors

RpcError::InvalidServiceName if the service name is empty (this happens only for manually constructed ServiceDefs — lower_service already validates).